Skip to content

Commit a1e0353

Browse files
me-andgitster
authored andcommitted
t4129: fix setfacl-related permissions failure
When running this test in Cygwin, it's necessary to remove the inherited access control lists from the Git working directory in order for later permissions tests to work as expected. As such, fix an error in the test script so that the ACLs are set for the working directory, not a nonexistent subdirectory. Signed-off-by: Adam Dinwoodie <[email protected]> Reviewed-by: Matheus Tavares <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent eb3c027 commit a1e0353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t4129-apply-samemode.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ test_expect_success POSIXPERM 'do not use core.sharedRepository for working tree
7878
test_config core.sharedRepository 0666 &&
7979
(
8080
# Remove a default ACL if possible.
81-
(setfacl -k newdir 2>/dev/null || true) &&
81+
(setfacl -k . 2>/dev/null || true) &&
8282
umask 0077 &&
8383
8484
# Test both files (f1) and leading dirs (d)

0 commit comments

Comments
 (0)