jira-prepare-commit-msg
jira-prepare-commit-msg copied to clipboard
Git rebase throws error when applying rebase
When I use git rebase -i `git merge-base HEAD master` --rebase-merges and apply the rebase I get this error message repeated for each commit, even though it doesn't block the rebase:
JIRA prepare commit msg > done
JIRA prepare commit msg > start
JIRA prepare commit msg > Error: Command failed: git --git-dir="/Volumes/SourceCode/myrepo/.git" symbolic-ref --short HEAD
fatal: ref HEAD is not a symbolic ref
Running this in terminal succeeds:
$ git --git-dir="/Volumes/SourceCode/myrepo/.git" symbolic-ref --short HEAD
develop
Calling this hook for every commit in a rebase makes the rebases take a lot longer. Maybe the fix could be not calling this hook?
I've the same issue. Calling the git command by hand works though.
Any information on a possible fix?