]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1405-main-ref-store.sh
t1405: mark test for 'git pack-refs' as REFFILES
[thirdparty/git.git] / t / t1405-main-ref-store.sh
index 92b04873247a4e1bac7332b65761c295eadce794..49718b7ea7fe7df85b6e2bd4c9833ee443825632 100755 (executable)
@@ -9,12 +9,18 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
 
 RUN="test-tool ref-store main"
 
-test_expect_success 'pack_refs(PACK_REFS_ALL | PACK_REFS_PRUNE)' '
-       test_commit one &&
+
+test_expect_success 'setup' '
+       test_commit one
+'
+
+test_expect_success REFFILES 'pack_refs(PACK_REFS_ALL | PACK_REFS_PRUNE)' '
        N=`find .git/refs -type f | wc -l` &&
        test "$N" != 0 &&
-       $RUN pack-refs 3 &&
-       N=`find .git/refs -type f | wc -l`
+       ALL_OR_PRUNE_FLAG=3 &&
+       $RUN pack-refs ${ALL_OR_PRUNE_FLAG} &&
+       N=`find .git/refs -type f` &&
+       test -z "$N"
 '
 
 test_expect_success 'create_symref(FOO, refs/heads/main)' '