Subject: Re: [PATCH] merge: make merge state available to prepare-commit-msg hook

From: Jonathan Nieder <[email-masked]>
Date: Wed, 8 Jan 2014 12:29:42 -0800

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