Skip to content

Commit

Permalink
Merge pull request capistrano#34 from jgr/master
Browse files Browse the repository at this point in the history
Change to the diff method of git.rb to not modify its arguments. (Allows post-deploy hooks to see the accurate diff)
  • Loading branch information
leehambley committed May 19, 2011
2 parents ee426f7 + 9414918 commit 2a8aded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capistrano/recipes/deploy/scm/git.rb
Expand Up @@ -199,8 +199,8 @@ def sync(revision, destination)

# 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).
Expand Down

0 comments on commit 2a8aded

Please sign in to comment.