1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-04 03:48:07 +02:00

Fix Shell.Stash() for older versions of git

Older versions need an explicit "push" subcommand for the -m option to be
recognized.
This commit is contained in:
Stefan Haller 2023-07-01 16:00:16 +02:00
parent 1d96ade0ba
commit ea0baf58e6

View File

@ -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
}