Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot deploy with :branch set to tag #29

Open
Phitherek opened this issue Oct 17, 2019 · 1 comment
Open

Cannot deploy with :branch set to tag #29

Phitherek opened this issue Oct 17, 2019 · 1 comment

Comments

@Phitherek
Copy link

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>...]'
@Phitherek Phitherek changed the title Cannot deploy with:branch set to tag Cannot deploy with :branch set to tag Oct 17, 2019
@sveriger
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants