Skip to content

Commit b263d62

Browse files
committed
Pull instead of fetch
Signed-off-by: Richard Nixon <[email protected]>
1 parent 5f8a703 commit b263d62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func processRepo(workspace, project, repo, mainBranch string) {
6565

6666
func pullRepo(repoDir, mainBranch string) {
6767
fmt.Printf(" Pulling %v branch %v\n", repoDir, mainBranch)
68-
out, err := exec.Command("git", "-C", repoDir, "fetch", "origin", mainBranch).CombinedOutput()
68+
out, err := exec.Command("git", "-C", repoDir, "pull", "origin", mainBranch+":"+mainBranch).CombinedOutput()
6969
if err != nil {
7070
fmt.Printf("%v\n", string(out))
7171
}

0 commit comments

Comments
 (0)