On Thu, Jul 10, 2025 at 11:50 AM Junio C Hamano [off-list ref] wrote:
Oren Levi [off-list ref] writes:
quoted
What did you do before the bug happened? (Steps to reproduce your issue)
1. Run `git ci -a`
2. Edit COMMIT_EDITMSG (using vscode)
3. Save&Close
Here is what I did as a quick sanity check
$ git checkout --detach HEAD
$ git reset --soft HEAD~23
$ git commit -a -v
Since I do not use vscode, my reproduction attempt used an editor
different from it. It is possible that your editor may be mangling
the line that it is not supposed to touch, but that is not something
I can tell.
I don't use vscode either, but I did install it (in a Linux VM) to
test this. Like you, I was unable to reproduce the problem using the
provided recipe. My attempt was using the factory settings for VScode,
which may be different from the settings used by the OP.