mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Merge pull request #34 from jgr/master
Change to the diff method of git.rb to not modify its arguments. (Allows post-deploy hooks to see the accurate diff)
This commit is contained in:
commit
2a8aded23a
1 changed files with 2 additions and 2 deletions
|
@ -199,8 +199,8 @@ module Capistrano
|
|||
|
||||
# Returns a string of diffs between two revisions
|
||||
def diff(from, to=nil)
|
||||
from << "..#{to}" if to
|
||||
scm :diff, from
|
||||
return scm :diff, from unless to
|
||||
scm :diff, "#{from}..#{to}"
|
||||
end
|
||||
|
||||
# Returns a log of changes between the two revisions (inclusive).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue