]> git.ipfire.org Git - thirdparty/git.git/commitdiff
transport-helper: fix typo in BUG() message
authorJeff King <peff@peff.net>
Fri, 22 May 2026 04:43:52 +0000 (00:43 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 May 2026 05:38:41 +0000 (14:38 +0900)
We mistakenly refer to the git_connect_service enum as "_type" rather
than "_service". Users should never see this message in practice, but it
is slightly confusing when reading the code.

Reported-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport-helper.c

index 826b35ac8c9c7034dfbf20607575d01cb640733c..abec4288619ca428a66eaae0bab3f143f8f0fcaa 100644 (file)
@@ -632,7 +632,7 @@ static const char *connect_service_cmd(enum git_connect_service service)
        case GIT_CONNECT_UPLOAD_ARCHIVE:
                return "git-upload-archive";
        }
-       BUG("unknown git_connect_type: %d", service);
+       BUG("unknown git_connect_service: %d", service);
 }
 
 static int process_connect_service(struct transport *transport,