mirror of
https://github.com/cooperspencer/gickup.git
synced 2026-10-19 16:16:46 +00:00
fixed non-constant format in gitcmd
This commit is contained in:
+2
-2
@@ -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"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user