diff --git a/pkg/git/operations.go b/pkg/git/operations.go index 8cfac229f..dd6c533ca 100644 --- a/pkg/git/operations.go +++ b/pkg/git/operations.go @@ -469,7 +469,7 @@ func findErrorMessage(output io.Reader) string { case strings.HasPrefix(sc.Text(), "ERROR fatal: "): // Saw this error on ubuntu systems return sc.Text() case strings.HasPrefix(sc.Text(), "error:"): - return strings.Trim(sc.Text(), "error: ") + return strings.TrimPrefix(sc.Text(), "error: ") } } return ""