]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5200: move `update-server-info -h` test from t1517
authorUsman Akinyemi <usmanakinyemi202@gmail.com>
Fri, 8 Aug 2025 01:06:50 +0000 (06:36 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Aug 2025 14:48:27 +0000 (07:48 -0700)
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>
t/t1517-outside-repo.sh
t/t5200-update-server-info.sh

index e9f6d03e1bc948cec0fc7561355a0df5821c4b69..4eba3f486d733dd52e66ff018d48d31e6850617a 100755 (executable)
@@ -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 &&
index 836590705599520304dd8255eaeb87318c0a1d30..a551e955b5524b7ff6f189500ec90c8b3b8ecdb8 100755 (executable)
@@ -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