From: Junio C Hamano Date: Thu, 26 Jul 2007 07:15:34 GMT Subject: Re: [PATCH 4/5] Add test for sanitized work-tree behaviour Message-ID: <7vfy3b8wkp.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > Signed-off-by: Johannes Schindelin > --- > ... > @@ -3,90 +3,109 @@ > test_description='test separate work tree' > . ./test-lib.sh > > +i=1 > + > test_rev_parse() { > - ... > + name="$1" > + for option in --is-bare-repository --is-inside-git-dir \ > + --is-inside-work-tree --show-prefix > + do > + shift > + test_expect_success "$name: $option" \ > + "test '$1' = \"\$(git rev-parse $option)\"" > +i=$(($i+1)) > +test $i = $STOPI && gdb --args git rev-parse $option Eh?