Re: [PATCH 1/(3/4)] test: does pre-commit-hook learn authorship?
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Mar 11, 2012, 20:30 UTC
- 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:
Show 5 quoted lines
> +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