(cmd string)
| 97 | } |
| 98 | |
| 99 | func 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 | |
| 107 | func checkDeployKey(key *database.PublicKey, repo *database.Repository) { |
| 108 | // Check if this deploy key belongs to current repository. |