t6041: do not compress backup tar file

The test uses the 'z' option, i.e. "compress the output while at
it", which is GNUism and not portable.

Reported-by: Armin Kunaschik <megabreit@googlemail.com>
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Stefan Beller 2016-05-09 10:09:08 -07:00 committed by Junio C Hamano
parent 95f0539edf
commit f5ee54aab1
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ test_description='bisect can handle submodules'
git_bisect () { git_bisect () {
git status -su >expect && git status -su >expect &&
ls -1pR * >>expect && ls -1pR * >>expect &&
tar czf "$TRASH_DIRECTORY/tmp.tgz" * && tar cf "$TRASH_DIRECTORY/tmp.tar" * &&
GOOD=$(git rev-parse --verify HEAD) && GOOD=$(git rev-parse --verify HEAD) &&
git checkout "$1" && git checkout "$1" &&
echo "foo" >bar && echo "foo" >bar &&
@ -20,7 +20,7 @@ git_bisect () {
git bisect start && git bisect start &&
git bisect good $GOOD && git bisect good $GOOD &&
rm -rf * && rm -rf * &&
tar xzf "$TRASH_DIRECTORY/tmp.tgz" && tar xf "$TRASH_DIRECTORY/tmp.tar" &&
git status -su >actual && git status -su >actual &&
ls -1pR * >>actual && ls -1pR * >>actual &&
test_cmp expect actual && test_cmp expect actual &&