Skip to content

Commit

Permalink
Merge pull request #17 from vincentlepot/fix_strip_revision
Browse files Browse the repository at this point in the history
Don't return nil if revision is already clean
  • Loading branch information
Bladrak committed Sep 29, 2015
2 parents 2dd64ca + ec0ac81 commit 144e3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/rsync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def has_roles?

run_locally do
within fetch(:rsync_stage) do
rev = capture(:git, 'rev-parse', 'HEAD').strip!
rev = capture(:git, 'rev-parse', 'HEAD').strip
set :current_revision, rev
end
end
Expand Down

0 comments on commit 144e3d4

Please sign in to comment.