diff --git a/gitcmd/gitcmd.go b/gitcmd/gitcmd.go index 3281200..15f9303 100644 --- a/gitcmd/gitcmd.go +++ b/gitcmd/gitcmd.go @@ -96,7 +96,7 @@ func (g GitCmd) Push(path, remote string) error { output, err := cmd.CombinedOutput() if err != nil { if _, ok := err.(*exec.ExitError); ok { - return fmt.Errorf(strings.TrimSuffix(string(output), "\n")) + return fmt.Errorf("%s", strings.TrimSuffix(string(output), "\n")) } } @@ -114,7 +114,7 @@ func (g GitCmd) Checkout(path, branch string) error { output, err := cmd.CombinedOutput() if err != nil { if _, ok := err.(*exec.ExitError); ok { - return fmt.Errorf(strings.TrimSuffix(string(output), "\n")) + return fmt.Errorf("%s", strings.TrimSuffix(string(output), "\n")) } }