aboutsummaryrefslogtreecommitdiff
path: root/cmd/receivepack9418/request.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-08 02:31:17 +0800
committerGravatar Runxi Yu2026-03-08 02:31:17 +0800
commitdb2ea1fbc5ccc13f9bbc5a38abf4c55390265fdb (patch)
treef30c52a71f19ea505c884dfcf79681ef2563b29b /cmd/receivepack9418/request.go
parentinternal/compress: Remove InputConsumed/Progress (diff)
signatureNo signature
cmd/receivepack9418: Lint
Diffstat (limited to 'cmd/receivepack9418/request.go')
-rw-r--r--cmd/receivepack9418/request.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/receivepack9418/request.go b/cmd/receivepack9418/request.go
index 5e392926..57b55e30 100644
--- a/cmd/receivepack9418/request.go
+++ b/cmd/receivepack9418/request.go
@@ -21,6 +21,7 @@ func parseGitProtoRequestPayload(payload []byte) (gitProtoRequest, error) {
}
commandPath := string(parts[0])
+
command, pathname, ok := strings.Cut(commandPath, " ")
if !ok || command == "" || pathname == "" {
return gitProtoRequest{}, fmt.Errorf("malformed command/path segment %q", commandPath)