Re: [PATCH] merge: make merge state available to prepare-commit-msg hook
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jan 8, 2014, 20:29 UTC
- Message-ID
- <20140108202942.GM3881@google.com>
- In-Reply-To
- <B19C65C1-C2D9-486F-AEA7-1497A3B5C5B4@yaauie.com>
Hi,
Ryan Biesemeyer wrote:
> In this case it was not immediately clear to me how to add cleanup to an existing > test that dirtied the state of the test repository by leaving behind an in-progress > merge. I see `test_cleanup` defined in the test lib & related functions, but see no > examples of its use in the test suites. Could you advise?
test_when_finished pushes a command to be run unconditionally when the current test assertion finishes.
Thanks, Jonathan