Skip to content

Error when in detached head mode #38

@NicoHood

Description

@NicoHood
  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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions