git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] t0001: check syntax of sample hooks

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Jul 11, 2010, 00:53 UTC
Message-ID
<20100711005327.GA5744@burratino>
In-Reply-To
<20100711004518.GA5658@burratino>
Jonathan Nieder wrote:
Show 15 quoted lines
> +++ b/t/t0001-init.sh
> @@ -141,6 +141,24 @@ test_expect_success 'reinit' '
>  	test_cmp again/empty again/err2
>  '
>  
> +test_expect_success 'sample hooks use acceptable syntax' '
> +	rm -fr hook-syntax &&
> +	git init hook-syntax &&
> +	(
> +		cd hook-syntax &&
> +		test -d .git/hooks &&
> +		fail=f &&
> +		for i in .git/hooks/*.sample
> +		do
> +			read shebang <"$i" &&
This should use ‘read -r’, for the sake of #!c:\Users\Xyzzy\bin\bash.exe

*sigh* Jonathan

Previous: Jonathan Nieder
Message 2 of 2 in “t0001: check syntax of sample hooks”
  1. t0001: check syntax of sample hooksJonathan Nieder, Jul 11, 2010
  2. Jonathan NiederJul 11, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.