mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Add --all to "git fetch" command when not fetching a specific remote
This commit is contained in:
parent
697157f5d5
commit
31a2ea1f19
4 changed files with 37 additions and 8 deletions
|
@ -54,7 +54,9 @@ type FetchOptions struct {
|
|||
|
||||
// Fetch fetch git repo
|
||||
func (self *SyncCommands) FetchCmdObj(opts FetchOptions) oscommands.ICmdObj {
|
||||
cmdArgs := NewGitCmd("fetch").ToArgv()
|
||||
cmdArgs := NewGitCmd("fetch").
|
||||
ArgIf(self.UserConfig.Git.FetchAll, "--all").
|
||||
ToArgv()
|
||||
|
||||
cmdObj := self.cmd.New(cmdArgs)
|
||||
if opts.Background {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue