()
| 1227 | } |
| 1228 | |
| 1229 | func gitVersion() string { |
| 1230 | _, output, err := runCommandSilent("git", "--version") |
| 1231 | if err != nil { |
| 1232 | say.Debug("gitVersion encountered an error: " + err.Error()) |
| 1233 | return "" |
| 1234 | } |
| 1235 | return strings.TrimSpace(output) |
| 1236 | } |
| 1237 | |
| 1238 | func isGit() bool { |
| 1239 | _, _, err := runCommandSilent("git", "rev-parse") |
no test coverage detected