aboutsummaryrefslogtreecommitdiffstats
path: root/t/t3513-revert-submodule.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-06-14 13:33:28 +0900
committerJunio C Hamano <gitster@pobox.com>2021-06-14 13:33:28 +0900
commitc189dba20e6d94e4408bcc6ad298f0c157f05b43 (patch)
tree4cb3d1a1db0f954b8184cb4dd79383d44890fcc8 /t/t3513-revert-submodule.sh
parentd9d3b76feedc74d50221ca7b8efd84d4c0db2c05 (diff)
parent5317dfeaed30fbe647899ece261e3dd40e5ced1f (diff)
downloadgit-c189dba20e6d94e4408bcc6ad298f0c157f05b43.tar.gz
Merge branch 'dd/honor-users-tar-in-tests'
Test portability fix. * dd/honor-users-tar-in-tests: t: use configured TAR instead of tar
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 74cd96e582..8bfe3ed246 100755
--- a/t/t3513-revert-submodule.sh
+++ b/t/t3513-revert-submodule.sh
@@ -14,7 +14,7 @@ test_description='revert can handle submodules'
git_revert () {
git status -su >expect &&
ls -1pR * >>expect &&
- tar cf "$TRASH_DIRECTORY/tmp.tar" * &&
+ "$TAR" cf "$TRASH_DIRECTORY/tmp.tar" * &&
may_only_be_test_must_fail "$2" &&
$2 git checkout "$1" &&
if test -n "$2"
@@ -23,7 +23,7 @@ git_revert () {
fi &&
git revert HEAD &&
rm -rf * &&
- tar xf "$TRASH_DIRECTORY/tmp.tar" &&
+ "$TAR" xf "$TRASH_DIRECTORY/tmp.tar" &&
git status -su >actual &&
ls -1pR * >>actual &&
test_cmp expect actual &&