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

3 messages from 2017-03-20 to 2017-03-21. Participants: Sebastian Schuberth, Stefan Beller.
Thread: https://gitlist.dev/t/45439

## Sebastian Schuberth, 2017-03-20 15:50

Subject: Regression: Reword during rebase -i does not seem to trigger commit-msg hook anymore
Message-ID: <oaotoa$qkp$1@blaine.gmane.org>
URL: https://gitlist.dev/e/oaotoa%24qkp%241%40blaine.gmane.org

```
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


```

## Stefan Beller, 2017-03-20 17:43

Subject: Re: Regression: Reword during rebase -i does not seem to trigger commit-msg hook anymore
Message-ID: <CAGZ79kY7bCt_3Fse_Qi43Aej=MgN1ABLTx7eLmPCs+aP2e9ZwQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAGZ79kY7bCt_3Fse_Qi43Aej%3DMgN1ABLTx7eLmPCs%2BaP2e9ZwQ%40mail.gmail.com
In-Reply-To: <oaotoa$qkp$1@blaine.gmane.org>

```
On Mon, Mar 20, 2017 at 8:50 AM, Sebastian Schuberth
<sschuberth@gmail.com> wrote:
> 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?

In 2.12 RelNotes:

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

+cc Johannes

```

## Sebastian Schuberth, 2017-03-21 09:14

Subject: Re: Regression: Reword during rebase -i does not seem to trigger commit-msg hook anymore
Message-ID: <1f14be35-4688-7d0b-bb84-bfc901dba807@gmail.com>
URL: https://gitlist.dev/e/1f14be35-4688-7d0b-bb84-bfc901dba807%40gmail.com
In-Reply-To: <CAGZ79kY7bCt_3Fse_Qi43Aej=MgN1ABLTx7eLmPCs+aP2e9ZwQ@mail.gmail.com>

```
On 3/20/2017 18:43, Stefan Beller wrote:

>> 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.

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




```
