Bladrak/capistrano-rsync

Cannot deploy with :branch set to tag

Opened this issue · 1 comments

IT fails with:

      02 git reset --quiet --hard origin/4.16.2
      02 fatal: ambiguous argument 'origin/4.16.2': unknown revision or path not in the working tree.
      02 Use '--' to separate paths from revisions, like this:
      02 'git <command> [<revision>...] -- [<file>...]'
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Command::Failed: git exit status: 32768
git stdout: Nothing written
git stderr: fatal: ambiguous argument 'origin/4.16.2': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

Tasks: TOP => rsync:create_release => rsync:release => rsync => rsync:stage_done => rsync:stage
(See full trace by running task with --trace)
The deploy has failed with an error: git exit status: 32768
git stdout: Nothing written
git stderr: fatal: ambiguous argument 'origin/4.16.2': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

Hi. I faced this problem, too. But you can use "rsync_checkout" setting (see https://www.rubydoc.info/gems/capistrano-rsync-bladrak/1.3.4) to use tags instead of branch. Worked for me.