Skip to content

Commit 602155d

Browse files
typelesslafriks
authored andcommitted
Do not fetch all refs (#7797)
Which would unnecessarily slow down the pull compare operation.
1 parent c662f4c commit 602155d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/git/repo_compare.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (repo *Repository) GetCompareInfo(basePath, baseBranch, headBranch string)
5454
if repo.Path != basePath {
5555
// Add a temporary remote
5656
tmpRemote = strconv.FormatInt(time.Now().UnixNano(), 10)
57-
if err = repo.AddRemote(tmpRemote, basePath, true); err != nil {
57+
if err = repo.AddRemote(tmpRemote, basePath, false); err != nil {
5858
return nil, fmt.Errorf("AddRemote: %v", err)
5959
}
6060
defer func() {

0 commit comments

Comments
 (0)