Skip to contentSkip to conversation

Regression: Reword during rebase -i does not seem to trigger commit-msg hook anymore

DISCUSSION Sebastian Schuberth 2 participants 3 messages Mar 20, 2017 – Mar 21, 2017

lore
Share & tools
lore
#0 lore raw

Hi,

I'm using

$ git --version
git version 2.12.0.windows.1

With this version, when I do a "reword" during an inteactive rebase session, the commit-msg hook doe snot seem to be triggered anymore. This was particularly useful to let Gerrit's commit-msg hook add missing ChangeId footers.

I can work-aorund the issue by doing an "edit" and "commit --amend".

Is anyone else seeing this?

Regards,
Sebastian

#1 lore raw
Quoted 7 lines · Sebastian Schuberth

Hi,

I'm using

$ git --version
git version 2.12.0.windows.1
Quoted 8 lines

With this version, when I do a "reword" during an inteactive rebase session, the commit-msg hook doe snot seem to be triggered anymore. This was particularly useful to let Gerrit's commit-msg hook add missing ChangeId footers.

I can work-aorund the issue by doing an "edit" and "commit --amend".

Is anyone else seeing this?

In 2.12 RelNotes:

* "git rebase -i" starts using the recently updated "sequencer" code.

+cc Johannes

#2 lore raw
Quoted 5 lines · Stefan Beller
Quoted 5 lines

With this version, when I do a "reword" during an inteactive rebase session, the commit-msg hook doe snot seem to be triggered anymore. This was particularly useful to let Gerrit's commit-msg hook add missing ChangeId footers.

Quoted 7 lines
Quoted 3 lines

I can work-aorund the issue by doing an "edit" and "commit --amend".

Is anyone else seeing this?

In 2.12 RelNotes:

* "git rebase -i" starts using the recently updated "sequencer" code.

Thanks, that looks like a possible culprit. I can *not* reproduce the issue on Linux with "git version 2.12.1-382-gc0f9c70", thought. So either it's Windows-specific, or it has been fixed in 2.12.1 already.

Regards,
Sebastian