Skip to content

Commit 529a60a

Browse files
Unique-Usmangitster
authored andcommitted
t5304: move prune -h test from t1517
t1517 is now focused on testing subcommands outside a repository. Move the in-repo `-h` test for `prune` to t5304, which covers this command. Suggested-by: Patrick Steinhardt <[email protected]> Signed-off-by: Usman Akinyemi <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 18aae63 commit 529a60a

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

t/t1517-outside-repo.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,6 @@ test_expect_success LIBCURL 'remote-http outside repository' '
107107
test_grep "^error: remote-curl" actual
108108
'
109109

110-
test_expect_success 'prune does not crash with -h' '
111-
test_expect_code 129 git prune -h >usage &&
112-
test_grep "[Uu]sage: git prune " usage &&
113-
test_expect_code 129 nongit git prune -h >usage &&
114-
test_grep "[Uu]sage: git prune " usage
115-
'
116-
117110
for cmd in $(git --list-cmds=main)
118111
do
119112
cmd=${cmd%.*} # strip .sh, .perl, etc.

t/t5304-prune.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,4 +364,9 @@ test_expect_success 'gc.recentObjectsHook' '
364364
git cat-file -p $BLOB
365365
'
366366

367+
test_expect_success 'prune does not crash with -h' '
368+
test_expect_code 129 git prune -h >usage &&
369+
test_grep "[Uu]sage: git prune " usage
370+
'
371+
367372
test_done

0 commit comments

Comments
 (0)