Skip to content

Commit ab7751b

Browse files
authored
fix
1 parent 3d12ff3 commit ab7751b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/repository/branch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ func GetBranchDivergingInfo(ctx reqctx.RequestContext, baseRepo, headRepo *repo_
685685
if err != nil {
686686
return nil, err
687687
}
688-
hasPreviousCommit, _ := headCommit.HasPreviousCommit(baseCommitID)
688+
hasPreviousCommit, _ := headCommit.HasPreviousCommit(baseGitBranch.CommitID)
689689
info.BaseHasNewCommits = !hasPreviousCommit
690690
return info, nil
691691
}

0 commit comments

Comments
 (0)