(fetchAll bool)
| 55 | } |
| 56 | |
| 57 | func (self *SyncCommands) fetchCommandBuilder(fetchAll bool) *GitCommandBuilder { |
| 58 | return NewGitCmd("fetch"). |
| 59 | ArgIf(fetchAll, "--all"). |
| 60 | // avoid writing to .git/FETCH_HEAD; this allows running a pull |
| 61 | // concurrently without getting errors |
| 62 | Arg("--no-write-fetch-head") |
| 63 | } |
| 64 | |
| 65 | func (self *SyncCommands) FetchCmdObj(task gocui.Task) *oscommands.CmdObj { |
| 66 | cmdArgs := self.fetchCommandBuilder(self.UserConfig().Git.FetchAll).ToArgv() |
no test coverage detected