From: Patrick Steinhardt Date: Wed, 16 Oct 2024 08:13:04 +0000 (+0200) Subject: t1401: make invocation of tar(1) work with Win32-provided one X-Git-Tag: v2.48.0-rc0~87^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3acb1f71999ff7f156968014bd714f628904974e;p=thirdparty%2Fgit.git t1401: make invocation of tar(1) work with Win32-provided one Windows nowadays provides a tar(1) binary in "C:\Windows\system32". This version of tar(1) doesn't seem to handle the case where directory paths end with a trailing forward slash. And as we do that in t1401 the result is that the test fails. Drop the trailing slash. Other tests that use tar(1) work alright, this is the only instance where it has been failing. Signed-off-by: Patrick Steinhardt Signed-off-by: Taylor Blau --- diff --git a/t/t1401-symbolic-ref.sh b/t/t1401-symbolic-ref.sh index 5c60d6f812..90af3f955c 100755 --- a/t/t1401-symbolic-ref.sh +++ b/t/t1401-symbolic-ref.sh @@ -16,7 +16,7 @@ reset_to_sane() { test_expect_success 'setup' ' git symbolic-ref HEAD refs/heads/foo && test_commit file && - "$TAR" cf .git.tar .git/ + "$TAR" cf .git.tar .git ' test_expect_success 'symbolic-ref read/write roundtrip' '