# What hook is called after `git rebase --abort`?

1 messages from 2023-04-17 to 2023-04-17. Participants: Konstantin Kharlamov.
Thread: https://gitlist.dev/t/59609

## Konstantin Kharlamov, 2023-04-17 10:07

Subject: What hook is called after `git rebase --abort`?
Message-ID: <0d8c0c2c6f9348a2afea3992f589ab52db5bb434.camel@yandex.ru>
URL: https://gitlist.dev/e/0d8c0c2c6f9348a2afea3992f589ab52db5bb434.camel%40yandex.ru

```
As title says.

The usecase is typical: there's the infamous issue of dangling git-submodule changes
appearing in various operations, leading to problems such as inadvertently commiting
a submodule hash change while editing an irrelevant commit.

I already had sprinkled a few `git submodule update`s in `post-checkout` and
`post-rewrite` hooks, but I just found one more case: executing a `git rebase
--abort` to abort a `git rebase` operation that involved changing a submodule commit
results in the submodule change appearing in `git diff` even though no rebase
operation is ongoing. Apparently there's one more hook that requires to have the same
command, any ideas what that could be?

P.S.: please keep me CCed, I'm not subscribed to the list


```
