`ERROR: Could not find branch foo.` is not too hel...
# report-bugs
v
ERROR: Could not find branch foo.
is not too helpful as error message when I am on this very same branch. I guess `gt`'s problem is, that it is not a tracked branch, but the error doesn't say that.
p
(If applicable) To help us repro, please send the following if you haven't already: - PR links, screenshots, and/or debug output if applicable - Repro steps - Does this happen consistently? Just to you or others on your team also? - Is this a regression? Is the problem new? - If you're having an issue with the CLI, please send us debug logs using
gt feedback --with-debug-context <any message>
Hey Bjรถrn โ€” thanks for the feedback. What command got you to this error? typically for untracked branches on running a command like
gt submit
you would see
Copy code
ERROR: Cannot perform this operation on untracked branch foo.
You can track it by specifying its parent with gt track.
v
I tried
gt c
and
gt down
p
got it. And the branch in question was created with regular git commands?
v
Yes, iirc I got to detached HEAD, merged in two other branches, then created branch
foo
and that was where I was standing
Here the log:
p
thanks, and have you tried running
gt track
?
v
Yes, same outcome
p
could you share logs of
gt track
please?
v
Let me see whether it is still in the scrollback buffer
Unbenannt.txt
p
interesting. let me do a bit more investigating here. as an aside, seems like youre a few versions behind on the CLI may be worth updating.
v
Well, I do it when it shouts at me and it didn't yet. ๐Ÿ™‚
๐Ÿ˜… 1
Updated now
๐Ÿ‘ 1
p
when you
merged in two other branches
this was done with vanilla git versus
gt
? and what is the trunk of
foo
at this point? one of the merged branches or something else? trying to understand how you got to where you are, purely from detached head a new branch works with
gt track
albeit that
gt ls
shows it needs restack immediately
v
Being on a tracked branch
Copy code
git switch --detach
git merge vampire/mixin-spec-internals vampire/use-snapshot-id
git switch -c foo
# do some work
gt create groovy5 -m "Add Groovy 5 support (#2196)"
gt track
Both of the latter failing with the unhelpful message
๐Ÿ‘ 1