Skip to content

Commit d9fff1a

Browse files
committed
t/pack-refs-tests: drop '-f' from test_path_is_missing
test_path_is_missing expects exactly one argument: the path to check for absence. Passing '-f' is incorrect and results in "bug in the test script: 1 param" during test execution. The '-f' flag appears to have been carried over from the equivalent 'test -f' usage, but test_path_is_missing does not accept such flags. Remove the extraneous '-f' to use the helper correctly and restore proper test behavior. Signed-off-by: Jayesh Daga <jayeshdaga99@gmail.com>
1 parent 6e8d538 commit d9fff1a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

t/pack-refs-tests.sh

100644100755
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
#!/bin/sh
2+
3+
test_description='test pack-refs'
4+
5+
. ./test-lib.sh
6+
17
pack_refs=${pack_refs:-pack-refs}
28

39
test_expect_success 'enable reflogs' '
@@ -61,7 +67,7 @@ test_expect_success 'see if a branch still exists after git ${pack_refs} --prune
6167
test_expect_success 'see if git ${pack_refs} --prune remove ref files' '
6268
git branch f &&
6369
git ${pack_refs} --all --prune &&
64-
! test -f .git/refs/heads/f
70+
test_path_is_missing .git/refs/heads/f
6571
'
6672

6773
test_expect_success 'see if git ${pack_refs} --prune removes empty dirs' '

0 commit comments

Comments
 (0)