From cf25541e2e6e8879ee45f0eebaba4069cc1249a3 Mon Sep 17 00:00:00 2001 From: poyo Date: Thu, 2 Jul 2026 22:23:18 +0200 Subject: [PATCH] comment for future myself --- ssh/utils.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh/utils.go b/ssh/utils.go index 8133d41..293bec4 100644 --- a/ssh/utils.go +++ b/ssh/utils.go @@ -22,6 +22,7 @@ func closeChannel(channel ssh.Channel, req *ssh.Request, err string) { sendExitStatus(channel, 1) } +// parses the git command's raw arguments and returns the user, the repo's name, and an error if anything goes south. func getUserAndRepo(d *db.DB, raw string) (*types.User, string, error) { if strings.Contains(raw, "..") { return nil, "", fmt.Errorf("invalid repo name") -- 2.54.0