()
| 249 | } |
| 250 | |
| 251 | func getGitRepoRoot() string { |
| 252 | cmd := exec.Command("git", "rev-parse", "--show-toplevel") |
| 253 | out, err := cmd.Output() |
| 254 | if err != nil { |
| 255 | return "" |
| 256 | } |
| 257 | return strings.TrimSpace(string(out)) |
| 258 | } |
| 259 | |
| 260 | func getCurrentBranch() string { |
| 261 | cmd := exec.Command("git", "branch", "--show-current") |
no test coverage detected