Open rfwroo opened 1 week ago
Hi @rfwroo. Hm. Can you give platform details, and git version? Does it really only occur with those two commands, not with git diff
etc? Do they always fail, or is it dependent on the state of the repo? Are you able to give a repo and commit and diff at which this occurs? Possibly related to #1760
(And thanks for informing me of the existence of git checkout -p
!)
Can you give platform details, and git version?
git version 2.39.3 (Apple Git-146)
Does it really only occur with those two commands, not with git diff etc?
I've only observed it with the -p
flag.
Are you able to give a repo and commit and diff at which this occurs?
This is consistent for me:
git clone https://git.netflux.io/rob/dotfiles
cd dotfiles
git checkout c39ec29b21751744a645b9bef5ba06d5fabee9bf
git checkout -p HEAD~3 # triggers the panic, note that HEAD~2 does not
Do you have a syntax theme set? I am trying to figure out how repeat
can be reached inside paint_lines
, one possibility is that a certain theme dependent variable is set (internally config.zero_style.{foreground,background,is_reverse}
inget_should_right_fill_background_color_and_fill_style()
). You call checkout -p
directly inside a terminal, not inside a script which feeds y/n
etc. answers to the prompt?
You call checkout -p directly inside a terminal, not inside a script which feeds y/n etc. answers to the prompt?
Yes, all directly from the terminal.
Do you have a syntax theme set?
Aha. Not exactly but I do have these long-forgotten lines in my config. Removing them seems to avoid the panic. 🎉
Not sure if that points towards a bug still or just some dodgy config?
Hello! Following on from #320, I seem to still be experiencing the issue (or a very similar issue) in 0.18.2.
~This seems to happen with any invocation of
git add -p
orgit checkout -p
, even with a trivial diff.~ Update: this only affectsgit add -p
andgit checkout -p
(and possibly other commands with-p
flags) with certain diffs, see below. With--no-pager
the crash still occurs.Please let me know if I can provide any more context.