File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments