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:
parent
1d96ade0ba
commit
ea0baf58e6
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user