From ea0baf58e6b4b819117a859e06e82c3cef1aaf0d Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sat, 1 Jul 2023 16:00:16 +0200 Subject: [PATCH] Fix Shell.Stash() for older versions of git Older versions need an explicit "push" subcommand for the -m option to be recognized. --- pkg/integration/components/shell.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/integration/components/shell.go b/pkg/integration/components/shell.go index 6ff7dac34..decb748da 100644 --- a/pkg/integration/components/shell.go +++ b/pkg/integration/components/shell.go @@ -240,7 +240,7 @@ func (self *Shell) HardReset(ref string) *Shell { } func (self *Shell) Stash(message string) *Shell { - self.RunCommand([]string{"git", "stash", "-m", message}) + self.RunCommand([]string{"git", "stash", "push", "-m", message}) return self }