(err error, stderr string)
| 36 | } |
| 37 | |
| 38 | func gitCommandError(err error, stderr string) error { |
| 39 | if err == nil { |
| 40 | return nil |
| 41 | } |
| 42 | if stderr != "" { |
| 43 | return fmt.Errorf("git command failed: %s", stderr) |
| 44 | } |
| 45 | return err |
| 46 | } |
no outgoing calls
no test coverage detected