aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorUsman Akinyemi <usmanakinyemi202@gmail.com>2025-08-08 06:36:50 +0530
committerJunio C Hamano <gitster@pobox.com>2025-08-08 07:48:27 -0700
commit18aae638cbb7e6fe148b879c5b4e5ad4e5cc006d (patch)
tree780cd2a0f253a70dc5ec21b776dbcc2c13defd17 /t
parent39fc4085620b60f8a06239a249f6877111e5ac11 (diff)
downloadgit-18aae638cbb7e6fe148b879c5b4e5ad4e5cc006d.tar.gz
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 <ps@pks.im> Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t1517-outside-repo.sh5
-rwxr-xr-xt/t5200-update-server-info.sh5
2 files changed, 5 insertions, 5 deletions
diff --git a/t/t1517-outside-repo.sh b/t/t1517-outside-repo.sh
index e9f6d03e1b..4eba3f486d 100755
--- a/t/t1517-outside-repo.sh
+++ b/t/t1517-outside-repo.sh
@@ -107,11 +107,6 @@ test_expect_success LIBCURL 'remote-http outside repository' '
test_grep "^error: remote-curl" actual
'
-test_expect_success 'update-server-info does not crash with -h' '
- test_expect_code 129 git update-server-info -h >usage &&
- test_grep "[Uu]sage: git update-server-info " usage
-'
-
test_expect_success 'prune does not crash with -h' '
test_expect_code 129 git prune -h >usage &&
test_grep "[Uu]sage: git prune " usage &&
diff --git a/t/t5200-update-server-info.sh b/t/t5200-update-server-info.sh
index 8365907055..a551e955b5 100755
--- a/t/t5200-update-server-info.sh
+++ b/t/t5200-update-server-info.sh
@@ -46,4 +46,9 @@ test_expect_success 'midx does not create duplicate pack entries' '
test_must_be_empty dups
'
+test_expect_success 'update-server-info does not crash with -h' '
+ test_expect_code 129 git update-server-info -h >usage &&
+ test_grep "[Uu]sage: git update-server-info " usage
+'
+
test_done