Closed edslocomb closed 9 years ago
By way of explanation:
The fix might look a bit brittle, but the SSHKit backend is the only thing capistrano sets when --dry-run is specified; there's no convenience dry_run method to call or variable to fetch.
And that setting tells us why the problem arose: inside a run_locally{} block, SSHKit isn't used, and all strategy.git() commands get executed for reals.
It might be a bit brittle, but I can't see a better way either. Thanks for the contribution.
Released as v1.0.3 https://rubygems.org/gems/capistrano-deploytags/versions/1.0.3
Fixes https://github.com/mydrive/capistrano-deploytags/issues/26