diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-07-01 16:00:16 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-07-10 15:09:17 +0200 |
commit | ea0baf58e6b4b819117a859e06e82c3cef1aaf0d (patch) | |
tree | 15db971fbb5b13db91946c6a7dccacebb935e98e /pkg/integration | |
parent | 1d96ade0ba832ad80e266d511d6b355b2cbddc9f (diff) |
Fix Shell.Stash() for older versions of git
Older versions need an explicit "push" subcommand for the -m option to be
recognized.
Diffstat (limited to 'pkg/integration')
-rw-r--r-- | pkg/integration/components/shell.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |