]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1301: mark test for `core.sharedRepository` as reffiles specific
authorPatrick Steinhardt <ps@pks.im>
Mon, 29 Jan 2024 11:07:22 +0000 (12:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Jan 2024 21:54:32 +0000 (13:54 -0800)
In t1301 we verify whether reflog files written by the "files" ref
backend correctly honor permissions when "core.sharedRepository" is set.
The test logic is thus specific to the reffiles backend and will not
work with any other backends.

Mark the test accordingly with the REFFILES prereq.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Reviewed-by: Christian Couder <christian.couder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1301-shared-repo.sh

index e5a0d65caa3e4cc363319826f37a4254bfc99b33..8e2c01e76027f77d8de730816d6d83c22e953e57 100755 (executable)
@@ -137,7 +137,7 @@ test_expect_success POSIXPERM 'info/refs respects umask in unshared repo' '
        test_cmp expect actual
 '
 
-test_expect_success POSIXPERM 'git reflog expire honors core.sharedRepository' '
+test_expect_success REFFILES,POSIXPERM 'git reflog expire honors core.sharedRepository' '
        umask 077 &&
        git config core.sharedRepository group &&
        git reflog expire --all &&