Skip to content

Commit 343d751

Browse files
committed
fine tune
1 parent e4085c1 commit 343d751

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

services/repository/merge_upstream.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,6 @@ func GetUpstreamDivergingInfo(ctx context.Context, repo *repo_model.Repository,
101101
return info, nil
102102
}
103103

104-
// Check if the latest commit of the fork is also in the base
105-
gitRepo, err := git.OpenRepository(ctx, repo.BaseRepo.RepoPath())
106-
if err != nil {
107-
return nil, err
108-
}
109-
defer gitRepo.Close()
110-
111104
diff, err := git.GetDivergingCommits(ctx, repo.BaseRepo.RepoPath(), baseBranch.CommitID, forkBranch.CommitID)
112105
if err != nil {
113106
return nil, err

0 commit comments

Comments
 (0)