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 <johncai86@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
John Cai committed
Jan 19, 2024 at 20:18 UTC
0453030709d746f906ae5a45387ef72eac544099
2 files changed
+8
-8
t/t0601-reffiles-pack-refs.sh
+8
@@ -32,6 +32,14 @@ test_expect_success 'prepare a trivial repository' '
32
HEAD=$(git rev-parse --verify HEAD)
33
'
34
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
+
43
SHA1=
44
45
test_expect_success 'see if git show-ref works as expected' '
t/t1405-main-ref-store.sh
-8
@@ -15,14 +15,6 @@ test_expect_success 'setup' '
15
test_commit one
16
'
17
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
-
18
test_expect_success 'create_symref(FOO, refs/heads/main)' '
19
$RUN create-symref FOO refs/heads/main nothing &&
20
echo refs/heads/main >expected &&