Skip to content

Commit 0453030

Browse files
john-caigitster
authored andcommitted
t1405: move reffiles specific tests to t0601
Move this test to t0601 with other reffiles specific pack-refs tests since it is reffiles specific in that it looks into the loose refs directory for an assertion. Signed-off-by: John Cai <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 102d715 commit 0453030

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

t/t0601-reffiles-pack-refs.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ test_expect_success 'prepare a trivial repository' '
3232
HEAD=$(git rev-parse --verify HEAD)
3333
'
3434

35+
test_expect_success 'pack_refs(PACK_REFS_ALL | PACK_REFS_PRUNE)' '
36+
N=`find .git/refs -type f | wc -l` &&
37+
test "$N" != 0 &&
38+
test-tool ref-store main pack-refs PACK_REFS_PRUNE,PACK_REFS_ALL &&
39+
N=`find .git/refs -type f` &&
40+
test -z "$N"
41+
'
42+
3543
SHA1=
3644

3745
test_expect_success 'see if git show-ref works as expected' '

t/t1405-main-ref-store.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ test_expect_success 'setup' '
1515
test_commit one
1616
'
1717

18-
test_expect_success REFFILES 'pack_refs(PACK_REFS_ALL | PACK_REFS_PRUNE)' '
19-
N=`find .git/refs -type f | wc -l` &&
20-
test "$N" != 0 &&
21-
$RUN pack-refs PACK_REFS_PRUNE,PACK_REFS_ALL &&
22-
N=`find .git/refs -type f` &&
23-
test -z "$N"
24-
'
25-
2618
test_expect_success 'create_symref(FOO, refs/heads/main)' '
2719
$RUN create-symref FOO refs/heads/main nothing &&
2820
echo refs/heads/main >expected &&

0 commit comments

Comments
 (0)