Skip to content

Commit a50234b

Browse files
hanwengitster
authored andcommitted
t1405: mark test for 'git pack-refs' as REFFILES
The tests verifies that "pack-refs" causes loose refs to be packed. As both loose and packed refs are concepts specific to the files backend, mark the test as REFFILES. Check the outcome of the pack-refs operation. This was apparently forgotten in the commit introducing this test: 16feb99 (Mar 26 2017, "t1405: some basic tests on main ref store"). Signed-off-by: Han-Wen Nienhuys <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ace40ea commit a50234b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

t/t1405-main-ref-store.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,18 @@ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
99

1010
RUN="test-tool ref-store main"
1111

12-
test_expect_success 'pack_refs(PACK_REFS_ALL | PACK_REFS_PRUNE)' '
13-
test_commit one &&
12+
13+
test_expect_success 'setup' '
14+
test_commit one
15+
'
16+
17+
test_expect_success REFFILES 'pack_refs(PACK_REFS_ALL | PACK_REFS_PRUNE)' '
1418
N=`find .git/refs -type f | wc -l` &&
1519
test "$N" != 0 &&
16-
$RUN pack-refs 3 &&
17-
N=`find .git/refs -type f | wc -l`
20+
ALL_OR_PRUNE_FLAG=3 &&
21+
$RUN pack-refs ${ALL_OR_PRUNE_FLAG} &&
22+
N=`find .git/refs -type f` &&
23+
test -z "$N"
1824
'
1925

2026
test_expect_success 'create_symref(FOO, refs/heads/main)' '

0 commit comments

Comments
 (0)