Skip to content

Commit 3acb1f7

Browse files
pks-tttaylorr
authored andcommitted
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 <[email protected]> Signed-off-by: Taylor Blau <[email protected]>
1 parent b4b77ea commit 3acb1f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1401-symbolic-ref.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ reset_to_sane() {
1616
test_expect_success 'setup' '
1717
git symbolic-ref HEAD refs/heads/foo &&
1818
test_commit file &&
19-
"$TAR" cf .git.tar .git/
19+
"$TAR" cf .git.tar .git
2020
'
2121

2222
test_expect_success 'symbolic-ref read/write roundtrip' '

0 commit comments

Comments
 (0)