(root, ref string)
| 1321 | } |
| 1322 | |
| 1323 | func gitSymbolicRef(root, ref string) (string, bool) { |
| 1324 | cmd := exec.Command("git", "symbolic-ref", "--quiet", "--short", ref) |
| 1325 | cmd.Dir = root |
| 1326 | out, err := cmd.Output() |
| 1327 | if err != nil { |
| 1328 | return "", false |
| 1329 | } |
| 1330 | value := strings.TrimSpace(string(out)) |
| 1331 | if value == "" { |
| 1332 | return "", false |
| 1333 | } |
| 1334 | return value, true |
| 1335 | } |
| 1336 | |
| 1337 | // stopDaemon stops the watch daemon |
| 1338 | func stopDaemon(root string) { |
no outgoing calls
no test coverage detected