(args ...string)
| 274 | } |
| 275 | |
| 276 | func gitGetConfig(args ...string) (string, error) { |
| 277 | configCmd := gitCmd(gitConfigCommand(args)...) |
| 278 | output, err := configCmd.Output() |
| 279 | if err != nil { |
| 280 | return "", fmt.Errorf("Unknown config %s", args[len(args)-1]) |
| 281 | } |
| 282 | |
| 283 | return firstLine(output), nil |
| 284 | } |
| 285 | |
| 286 | func gitConfig(args ...string) ([]string, error) { |
| 287 | configCmd := gitCmd(gitConfigCommand(args)...) |
no test coverage detected
searching dependent graphs…