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

Function cleanCommand

internal/ssh/ssh.go:25–31  ·  view source on GitHub ↗
(cmd string)

Source from the content-addressed store, hash-verified

23)
24
25func cleanCommand(cmd string) string {
26 i := strings.Index(cmd, "git")
27 if i == -1 {
28 return cmd
29 }
30 return cmd[i:]
31}
32
33func handleServerConn(keyID string, chans <-chan ssh.NewChannel) {
34 for newChan := range chans {

Callers 1

handleServerConnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected