Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git rebase throws error when applying rebase #534

Open
chicken-suop opened this issue Sep 21, 2022 · 2 comments
Open

Git rebase throws error when applying rebase #534

chicken-suop opened this issue Sep 21, 2022 · 2 comments

Comments

@chicken-suop
Copy link

chicken-suop commented Sep 21, 2022

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
@cassus
Copy link

cassus commented Feb 28, 2023

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?

@kevindux
Copy link

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

Any information on a possible fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants