]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t4129: fix setfacl-related permissions failure
authorAdam Dinwoodie <adam@dinwoodie.org>
Wed, 23 Dec 2020 11:44:31 +0000 (11:44 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 9 Jan 2021 22:45:26 +0000 (14:45 -0800)
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 <adam@dinwoodie.org>
Reviewed-by: Matheus Tavares <matheus.bernardino@usp.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4129-apply-samemode.sh

index 41818d8315f32359b0eabd1cb91684c90c070098..576632f8681e76032c0f87ac0b65833314058035 100755 (executable)
@@ -78,7 +78,7 @@ test_expect_success POSIXPERM 'do not use core.sharedRepository for working tree
        test_config core.sharedRepository 0666 &&
        (
                # Remove a default ACL if possible.
-               (setfacl -k newdir 2>/dev/null || true) &&
+               (setfacl -k . 2>/dev/null || true) &&
                umask 0077 &&
 
                # Test both files (f1) and leading dirs (d)