Skip to content

Commit

Permalink
Merge pull request #15 from VincentCATILLON/bugfix-custom-remotes-for…
Browse files Browse the repository at this point in the history
…-tags

Usage of remote with tags cause fails.
  • Loading branch information
Bladrak committed Sep 5, 2015
2 parents 5dbb76a + 78e6745 commit 5ac2eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capistrano/rsync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
rsync_target = lambda do
case fetch(:rsync_checkout)
when "tag"
target = "#{fetch(:git_remote)}/tags/#{fetch(:branch)}"
target = "tags/#{fetch(:branch)}"
when "revision"
target = fetch(:branch)
else
Expand All @@ -64,7 +64,7 @@

rsync_branch = lambda do
if fetch(:rsync_checkout) == "tag"
branch = "#{fetch(:git_remote)}/tags/#{fetch(:branch)}"
branch = "tags/#{fetch(:branch)}"
else
branch = fetch(:branch)
end
Expand Down

0 comments on commit 5ac2eed

Please sign in to comment.