threads / discuss / 59609

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

Subject: What hook is called after `git rebase --abort`?

## tl;dr

One message between Apr 17, 2023 and Apr 17, 2023.

replies: 0people: 1as markdown or json

Konstantin Kharlamov· Apr 17, 2023, 10:07 UTC · lore
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

← back to recent threads