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 <ps@pks.im> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Patrick Steinhardt committed
Oct 16, 2024 at 10:13 UTC
3acb1f71999ff7f156968014bd714f628904974e
1 file changed
+1
-1
t/t1401-symbolic-ref.sh
+1
-1
@@ -16,7 +16,7 @@ reset_to_sane() {
16
test_expect_success 'setup' '
17
git symbolic-ref HEAD refs/heads/foo &&
18
test_commit file &&
19
- "$TAR" cf .git.tar .git/
19
+ "$TAR" cf .git.tar .git
20
'
21
22
test_expect_success 'symbolic-ref read/write roundtrip' '