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