From: Johannes Sixt Date: Sun, 11 Mar 2012 20:30:08 GMT Subject: Re: [PATCH 1/(3/4)] test: does pre-commit-hook learn authorship? Message-ID: <4F5D0B50.20803@kdbg.org> In-Reply-To: <7v1uozz97f.fsf_-_@alter.siamese.dyndns.org> Am 11.03.2012 12:08, schrieb Junio C Hamano: > +test_expect_failure 'check the author in hook' ' > + cat >"$HOOK" <<-\EOF && > + test "$GIT_AUTHOR_NAME" = "New Author" && > + test "$GIT_AUTHOR_EMAIL" = "newauthor@example.com" > + EOF Please insert #!/bin/sh as the first line of the script. We'll need it on Windows. -- Hannes