Skip to content

Commit

Permalink
In case the string is already clean, return it, not nil
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lepot committed Sep 28, 2015
1 parent 2dd64ca commit ec0ac81
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 ec0ac81

Please sign in to comment.