NicoHood / GPGit

A shell script that automates the process of signing Git sources via GPG
MIT License
89 stars 10 forks source link

Error when in detached head mode #38

Open NicoHood opened 12 months ago

NicoHood commented 12 months ago
  1. Checkout a specific git tag
  2. Add more commits
  3. Run gpgit

This is the error, the line is not exactly correct (gpgit 1.5.0)

+ INTERACTIVE=false
+++ git symbolic-ref -q HEAD
++++ die 'Error on or near line 401. Please report this issue: https://github.com/NicoHood/gpgit/issues'
++++ error 'Error on or near line 401. Please report this issue: https://github.com/NicoHood/gpgit/issues'
++++ echo '==> ERROR: Error on or near line 401. Please report this issue: https://github.com/NicoHood/gpgit/issues'
==> ERROR: Error on or near line 401. Please report this issue: https://github.com/NicoHood/gpgit/issues
++++ exit 1
++ git for-each-ref '--format=%(upstream:remotename)' ''
+ REMOTE=
+ REMOTE=origin

The reason for this error is git symbolic-ref -q HEAD fails. We ignore this error, however the script will still report this as an issue (but continues to work fine)