ginh icon indicating copy to clipboard operation
ginh copied to clipboard

[BUG] debug commit is dependent on git repo

Open theryangeary opened this issue 6 years ago • 0 comments

Describe the bug Using the -d flag to get the debug output prints the commit hash of the HEAD of the repo. If ginh is run from inside this repo that's fine, however, if it is installed and run, it gives

fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
commit: 

And if it is installed and run from inside another git repo, it will give a hash from that repo, which is useless.

Debug See above

theryangeary avatar Aug 10 '19 15:08 theryangeary