1
0
Fork 0
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:
Lee Hambley 2011-05-19 11:51:27 -07:00
commit 2a8aded23a

View file

@ -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).