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