Skip to content

Commit cea6c2e

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

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

t/t1517-outside-repo.sh

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

110-
test_expect_success 'update-server-info does not crash with -h' '
111-
test_expect_code 129 git update-server-info -h >usage &&
112-
test_grep "[Uu]sage: git update-server-info " usage
113-
'
114-
115110
test_expect_success 'prune does not crash with -h' '
116111
test_expect_code 129 git prune -h >usage &&
117112
test_grep "[Uu]sage: git prune " usage &&
118113
test_expect_code 129 nongit git prune -h >usage &&
119114
test_grep "[Uu]sage: git prune " usage
120115
'
116+
121117
for cmd in $(git --list-cmds=main)
122118
do
123119
cmd=${cmd%.*} # strip .sh, .perl, etc.

t/t5200-update-server-info.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,9 @@ test_expect_success 'midx does not create duplicate pack entries' '
4646
test_must_be_empty dups
4747
'
4848

49+
test_expect_success 'update-server-info does not crash with -h' '
50+
test_expect_code 129 git update-server-info -h >usage &&
51+
test_grep "[Uu]sage: git update-server-info " usage
52+
'
53+
4954
test_done

0 commit comments

Comments
 (0)