summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2026-05-22 00:43:52 -0400
committerJunio C Hamano <gitster@pobox.com>2026-05-22 14:38:41 +0900
commitabcf2dd5b215ff7bad0bb44524f352cd352bda0f (patch)
treeb7821cbc31fe554195796e191e5e28f619b2f8dc
parent3198237bf3ce3c1eae845ac8e13a2da813800c77 (diff)
transport-helper: fix typo in BUG() message
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>
-rw-r--r--transport-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport-helper.c b/transport-helper.c
index 826b35ac8c..abec428861 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -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,