jira-prepare-commit-msg icon indicating copy to clipboard operation
jira-prepare-commit-msg copied to clipboard

Git rebase throws error when applying rebase

Open chicken-suop opened this issue 3 years ago • 4 comments

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

chicken-suop avatar Sep 21 '22 01:09 chicken-suop

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?

cassus avatar Feb 28 '23 11:02 cassus

I've the same issue. Calling the git command by hand works though.

Any information on a possible fix?

kevindux avatar Mar 10 '23 09:03 kevindux