aboutsummaryrefslogtreecommitdiff
path: root/cmd/receivepack9418/request.go
diff options
context:
space:
mode:
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)