On Fri, Sep 24, 2010 at 22:22, Elijah Newren <newren@xxxxxxxxx> wrote: > Âtest_expect_success 'plain' ' >    Â( > -        unset GIT_DIR GIT_WORK_TREE > +        unset GIT_DIR GIT_WORK_TREE && >        Âmkdir plain && >        Âcd plain && >        Âgit init > @@ -48,7 +48,7 @@ test_expect_success 'plain with GIT_WORK_TREE' ' > > Âtest_expect_success 'plain bare' ' >    Â( > -        unset GIT_DIR GIT_WORK_TREE GIT_CONFIG > +        unset GIT_DIR GIT_WORK_TREE GIT_CONFIG && >        Âmkdir plain-bare-1 && >        Âcd plain-bare-1 && >        Âgit --bare init > @@ -58,7 +58,7 @@ test_expect_success 'plain bare' ' > > Âtest_expect_success 'plain bare with GIT_WORK_TREE' ' >    Âif ( > -        unset GIT_DIR GIT_CONFIG > +        unset GIT_DIR GIT_CONFIG && >        Âmkdir plain-bare-2 && >        Âcd plain-bare-2 && >        ÂGIT_WORK_TREE=$(pwd) git --bare init > @@ -72,7 +72,7 @@ test_expect_success 'plain bare with GIT_WORK_TREE' ' > Âtest_expect_success 'GIT_DIR bare' ' > >    Â( > -        unset GIT_CONFIG > +        unset GIT_CONFIG && >        Âmkdir git-dir-bare.git && >        ÂGIT_DIR=git-dir-bare.git git init >    Â) && > @@ -82,7 +82,7 @@ test_expect_success 'GIT_DIR bare' ' > Âtest_expect_success 'init --bare' ' > >    Â( > -        unset GIT_DIR GIT_WORK_TREE GIT_CONFIG > +        unset GIT_DIR GIT_WORK_TREE GIT_CONFIG && >        Âmkdir init-bare.git && >        Âcd init-bare.git && >        Âgit init --bare > @@ -93,7 +93,7 @@ test_expect_success 'init --bare' ' > Âtest_expect_success 'GIT_DIR non-bare' ' > >    Â( > -        unset GIT_CONFIG > +        unset GIT_CONFIG && >        Âmkdir non-bare && >        Âcd non-bare && >        ÂGIT_DIR=.git git init > @@ -104,7 +104,7 @@ test_expect_success 'GIT_DIR non-bare' ' > Âtest_expect_success 'GIT_DIR & GIT_WORK_TREE (1)' ' > >    Â( > -        unset GIT_CONFIG > +        unset GIT_CONFIG && >        Âmkdir git-dir-wt-1.git && >        ÂGIT_WORK_TREE=$(pwd) GIT_DIR=git-dir-wt-1.git git init >    Â) && > @@ -114,7 +114,7 @@ test_expect_success 'GIT_DIR & GIT_WORK_TREE (1)' ' > Âtest_expect_success 'GIT_DIR & GIT_WORK_TREE (2)' ' > >    Âif ( > -        unset GIT_CONFIG > +        unset GIT_CONFIG && >        Âmkdir git-dir-wt-2.git && >        ÂGIT_WORK_TREE=$(pwd) GIT_DIR=git-dir-wt-2.git git --bare init >    Â) > @@ -127,7 +127,7 @@ test_expect_success 'GIT_DIR & GIT_WORK_TREE (2)' ' > Âtest_expect_success 'reinit' ' > >    Â( > -        unset GIT_CONFIG GIT_WORK_TREE GIT_CONFIG > +        unset GIT_CONFIG GIT_WORK_TREE GIT_CONFIG && These are all bad, see c289c315c2bfcd5fde99f9e4dbb109f89e29dfce for why. If it's possible maybe we should have a new: test_returns_whatever unset FOO && To make this more self-documenting > -        echo "[attr]notest !test" > -        echo "f test=f" > -        echo "a/i test=a/i" > -        echo "onoff test -test" > -        echo "offon -test test" > +        echo "[attr]notest !test" && > +        echo "f test=f" && > +        echo "a/i test=a/i" && > +        echo "onoff test -test" && > +        echo "offon -test test" && >        Âecho "no notest" >    Â) >.gitattributes && >    Â( Should just use cat <.gitattributes ... > -    HEAD_entry_count=$(git reflog | wc -l) > -    master_entry_count=$(git reflog show master | wc -l) > +    HEAD_entry_count=$(git reflog | wc -l) && > +    master_entry_count=$(git reflog show master | wc -l) && Another thing better as test_cmp .. > Âtest_expect_success 'did not use upload-pack service' ' > -    grep '/git-upload-pack' <"$HTTPD_ROOT_PATH"/access.log >act > -    : >exp > +    grep '/git-upload-pack' <"$HTTPD_ROOT_PATH"/access.log >act && > +    : >exp && >    Âtest_cmp exp act > Â' Maybe change this this to: >exp && Or in a later non-&& series. ÿô.nÇ·®+%˱é¥wÿº{.nÇ· ßØnr¡öë¨è&£ûz¹Þúzf£¢·h§~Ûÿÿïÿê_èæ+v¨þ)ßø