Skip to content

Commit f06c1a3

Browse files
committed
fix
1 parent 50c5cd1 commit f06c1a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/issue/comments.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ func LoadCommentPushCommits(ctx context.Context, c *issues_model.Comment) error
164164
}
165165

166166
c.IsForcePush = data.IsForcePush
167+
167168
if c.IsForcePush {
168169
if len(data.CommitIDs) != 2 {
169170
return nil
@@ -185,7 +186,7 @@ func LoadCommentPushCommits(ctx context.Context, c *issues_model.Comment) error
185186

186187
c.Commits, err = git_service.ConvertFromGitCommit(ctx, gitRepo.GetCommitsFromIDs(data.CommitIDs), c.Issue.Repo)
187188
if err != nil {
188-
log.Debug("GetCommitsFromIDs: %v", err) // no need to show 500 error to end user when the commit does not exist
189+
log.Debug("ConvertFromGitCommit: %v", err) // no need to show 500 error to end user when the commit does not exist
189190
} else {
190191
c.CommitsNum = int64(len(c.Commits))
191192
}

0 commit comments

Comments
 (0)