Re: hook for rebase --continue
- From
- Neal Kreitzinger <nkreitzinger@gmail.com>
- Date
- Nov 15, 2011, 23:28 UTC
- Message-ID
- <4EC2F58C.9020202@gmail.com>
- In-Reply-To
- <CALts4TQ545L1d1J0EiUjd7x=WBJpjCCv6UsXZOoGQAC29RqC5g@mail.gmail.com>
On 11/7/2011 1:42 PM, Matt Graham wrote:
Show 14 quoted lines
> Hi, I did some testing and it appears that during a rebase, if I > resolve a conflict and call git rebase --continue, the pre-commit > hook doesn't run. This means that if I don't resolve the conflict > correctly, our check for invalid syntax doesn't get run and creates > the risk that someone could push code with invalid syntax, not > realizing that the check didn't run. > > Does anyone else share my expectation that the pre-commit hook > should run during a rebase? Or at least for the first commit > following a rebase conflict? > > If not, is there another hook that is triggered by a rebase that I > should be using instead? >
I just noticed there is a post-rewrite hook in the manpage http://schacon.github.com/git/githooks.html. Maybe this does what you want.
v/r, neal