summaryrefslogtreecommitdiff
path: root/t/t3513-revert-submodule.sh
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2016-05-06 18:37:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-09 18:49:14 (GMT)
commit95f0539edfc5b2e6f8c6c1c5909340ba83521a26 (patch)
treea0196efca84efc945de0de0d505f230486394448 /t/t3513-revert-submodule.sh
parent765428699a5381f113d19974720bc91b5bfeaf1d (diff)
downloadgit-95f0539edfc5b2e6f8c6c1c5909340ba83521a26.zip
git-95f0539edfc5b2e6f8c6c1c5909340ba83521a26.tar.gz
git-95f0539edfc5b2e6f8c6c1c5909340ba83521a26.tar.bz2
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 <megabreit@googlemail.com> Signed-off-by: Stefan Beller <sbeller@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3513-revert-submodule.sh')
-rwxr-xr-xt/t3513-revert-submodule.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t3513-revert-submodule.sh b/t/t3513-revert-submodule.sh
index a1c4e02..db93781 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 &&