From: Stefan Beller Date: Fri, 6 May 2016 18:37:05 +0000 (-0700) Subject: t3513: do not compress backup tar file X-Git-Tag: v2.9.0-rc0~39^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=95f0539edfc5b2e6f8c6c1c5909340ba83521a26;p=thirdparty%2Fgit.git t3513: 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 Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- diff --git a/t/t3513-revert-submodule.sh b/t/t3513-revert-submodule.sh index a1c4e0216f..db9378142a 100755 --- a/t/t3513-revert-submodule.sh +++ b/t/t3513-revert-submodule.sh @@ -14,11 +14,11 @@ test_description='revert can handle submodules' git_revert () { git status -su >expect && ls -1pR * >>expect && - tar czf "$TRASH_DIRECTORY/tmp.tgz" * && + tar cf "$TRASH_DIRECTORY/tmp.tar" * && git checkout "$1" && git revert HEAD && rm -rf * && - tar xzf "$TRASH_DIRECTORY/tmp.tgz" && + tar xf "$TRASH_DIRECTORY/tmp.tar" && git status -su >actual && ls -1pR * >>actual && test_cmp expect actual &&