From: Jonathan Nieder Date: Wed, 08 Jan 2014 20:29:42 GMT Subject: Re: [PATCH] merge: make merge state available to prepare-commit-msg hook Message-ID: <20140108202942.GM3881@google.com> In-Reply-To: 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