summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-05-31 14:09:23 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-05-31 15:54:20 +0200
commita2bdab21357483cc3f95b1c868cb749d35bf6170 (patch)
tree0aad1a8ab783b96a710d842b2b96b436f925ba51 /pkg
parentc70c8e84f85a5ce98c02b305a6dc4ea6a9eb6be8 (diff)
Remove unused fetch options RemoteName and BranchName
These were never used, since there are separate functions for fetching a remote and for fast-forwarding a branch.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/commands/git_commands/sync.go7
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 {