Closed alienxp03 closed 5 years ago
Hello, I'm not sure, but I think that fetch(:current_revision)
is blank in a dry run. So the command failed executing git rev-parse ^
.
We should skip the validation during a dry run.
Forgot to mention. I was running the dry-run
to see the full logs. But normal deployment failed too.
bundle exec cap production deploy
fatal: ambiguous argument '^': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Command to reproduce the error.
Errors that I'm getting.
After checking the source code, it's possible this is the line that's causing the error
https://github.com/codeur/capistrano-sentry/blob/4f4070256adb374e29e55e9bb07fd49310d0e72c/lib/capistrano/tasks/sentry.rake#L37
Testing the command locally, possibly this is the issue?
git rev-parse feature/update_sentry_capistrano^
- Okgit rev-parse master^
- Failed.