diff options
author | Mura Li <typeless@users.noreply.github.com> | 2019-08-13 16:30:44 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-08-13 11:30:44 +0300 |
commit | 602155df7bd00d55ea6d06843d270d08d7dc75cd (patch) | |
tree | 12732fea6e396a6737259e06f29be8bf7cd95101 /modules/git | |
parent | c662f4ced8cdbfd6865271af3cdd0bea3492c4e2 (diff) | |
download | gitea-602155df7bd00d55ea6d06843d270d08d7dc75cd.tar.gz gitea-602155df7bd00d55ea6d06843d270d08d7dc75cd.zip |
Do not fetch all refs (#7797)
Which would unnecessarily slow down the pull compare operation.
Diffstat (limited to 'modules/git')
-rw-r--r-- | modules/git/repo_compare.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/repo_compare.go b/modules/git/repo_compare.go index 7d66a2dc07..677201c5e0 100644 --- a/modules/git/repo_compare.go +++ b/modules/git/repo_compare.go @@ -54,7 +54,7 @@ func (repo *Repository) GetCompareInfo(basePath, baseBranch, headBranch string) if repo.Path != basePath { // Add a temporary remote tmpRemote = strconv.FormatInt(time.Now().UnixNano(), 10) - if err = repo.AddRemote(tmpRemote, basePath, true); err != nil { + if err = repo.AddRemote(tmpRemote, basePath, false); err != nil { return nil, fmt.Errorf("AddRemote: %v", err) } defer func() { |