We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a54b291 commit fe77431Copy full SHA for fe77431
git/git_fetch.go
@@ -16,7 +16,12 @@ import (
16
// windowsFetch is used for fetching changes using the git client if the platform is windows
17
// go-git fetch fails in windows due to SSH authentication error
18
func windowsFetch(repoPath string, remoteName string, branch string) *model.FetchResult {
19
- args := []string{"fetch", remoteName, branch}
+ var args []string
20
+ if remoteName == "" && branch == "" {
21
+ args = []string{"fetch"}
22
+ } else {
23
+ args = []string{"fetch", remoteName, branch}
24
+ }
25
cmd := utils.GetGitClient(repoPath, args)
26
cmdStr, cmdErr := cmd.Output()
27
0 commit comments