Closed marcosps closed 6 months ago
I'm not familiar with pipx, but I don't think it would matter. I'm curious about the fact that calling "git symbolic-ref HEAD" is failing. Can you run git symbolic-ref HEAD
in the same place in the tree where you tried to run b4 prep
?
I'm not familiar with pipx, but I don't think it would matter. I'm curious about the fact that calling "git symbolic-ref HEAD" is failing. Can you run
git symbolic-ref HEAD
in the same place in the tree where you tried to runb4 prep
?
$ git symbolic-ref HEAD
fatal: ref HEAD is not a symbolic ref
$ git branch
* (HEAD detached at kselftests/next)
In my understanding b4 prep would create a new branch based on my current HEAD (I tried to pass -f kselftests/next and the same error appeared.
But, I created a new branch based on kselftests/next by using:
$ git switch -C fix-kselftests kselftests/next
branch 'fix-kselftests' set up to track 'kselftests/next'.
Switched to a new branch 'fix-kselftests'
And symbolic-ref HEAD worked:
$ git symbolic-ref HEAD
refs/heads/fix-kselftests
And then b4 prep worked:
$ b4 prep -n lp-selftests-fixes
Created new branch b4/lp-selftests-fixes
Created the default cover letter, you can edit with --edit-cover.
I believe I'm doing something wrong here :P
$ git symbolic-ref HEAD fatal: ref HEAD is not a symbolic ref $ git branch * (HEAD detached at kselftests/next)
Right, we don't currently expect the tree to be in a detached-head state.
I believe I'm doing something wrong here :P
No, you're good -- we just need to properly handle the situation where we're starting with a detached HEAD. It shouldn't cause a critical failure.
I'll keep this issue open until I have a fix in place.
Thanks for the report.
I installed b4 from current github master:
My current branch is kselftests/next. When I tried to run prep, it happed:
Am I using in the wrong way?
Thanks!