diff options
-rw-r--r-- | pkg/commands/git_commands/sync.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pkg/commands/git_commands/sync.go b/pkg/commands/git_commands/sync.go index 6b336d175..515d0e4d8 100644 --- a/pkg/commands/git_commands/sync.go +++ b/pkg/commands/git_commands/sync.go @@ -50,16 +50,11 @@ func (self *SyncCommands) Push(opts PushOpts) error { type FetchOptions struct { Background bool - RemoteName string - BranchName string } // Fetch fetch git repo func (self *SyncCommands) Fetch(opts FetchOptions) error { - cmdArgs := NewGitCmd("fetch"). - ArgIf(opts.RemoteName != "", opts.RemoteName). - ArgIf(opts.BranchName != "", opts.BranchName). - ToArgv() + cmdArgs := NewGitCmd("fetch").ToArgv() cmdObj := self.cmd.New(cmdArgs) if opts.Background { |