fixed non-constant format in gitcmd

This commit is contained in:
Andreas Wachter
2026-02-04 15:56:11 +01:00
parent 778d43464d
commit c4f9ddaf70
+2 -2
View File
@@ -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"))
}
}