mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-07 22:02:56 +03: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:
@@ -240,7 +240,7 @@ func (self *Shell) HardReset(ref string) *Shell {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *Shell) Stash(message 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
|
return self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user