Skip to content

Commit

Permalink
Merge pull request #19 from ooga/master
Browse files Browse the repository at this point in the history
Delay resolution to first use
  • Loading branch information
Bladrak committed Nov 20, 2015
2 parents 7525f69 + 023c33d commit a984150
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/capistrano/rsync.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@
set_if_empty :rsync_checkout_tag, false

# Option states what to checkout
set_if_empty :rsync_checkout, "branch"

# To be somewhat backward compatible to the previous checkout_tag option
if fetch(:rsync_checkout_tag, false)
set :rsync_checkout, "tag"
end
set_if_empty :rsync_checkout, -> { fetch(:rsync_checkout_tag, false) ? "tag" : "branch"}

# You may not need the whole history, put to false to get it whole
set_if_empty :rsync_depth, 1
Expand Down

0 comments on commit a984150

Please sign in to comment.