MCPcopy Create free account
hub / github.com/gogs/gogs / parseSSHCmd

Function parseSSHCmd

internal/cmd/serv.go:99–105  ·  view source on GitHub ↗
(cmd string)

Source from the content-addressed store, hash-verified

97}
98
99func parseSSHCmd(cmd string) (string, string) {
100 ss := strings.SplitN(cmd, " ", 2)
101 if len(ss) != 2 {
102 return "", ""
103 }
104 return ss[0], strings.Replace(ss[1], "'/", "'", 1)
105}
106
107func checkDeployKey(key *database.PublicKey, repo *database.Repository) {
108 // Check if this deploy key belongs to current repository.

Callers 1

runServFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected