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 c662f4c commit 602155dCopy full SHA for 602155d
modules/git/repo_compare.go
@@ -54,7 +54,7 @@ func (repo *Repository) GetCompareInfo(basePath, baseBranch, headBranch string)
54
if repo.Path != basePath {
55
// Add a temporary remote
56
tmpRemote = strconv.FormatInt(time.Now().UnixNano(), 10)
57
- if err = repo.AddRemote(tmpRemote, basePath, true); err != nil {
+ if err = repo.AddRemote(tmpRemote, basePath, false); err != nil {
58
return nil, fmt.Errorf("AddRemote: %v", err)
59
}
60
defer func() {
0 commit comments