Skip to content

Commit 9431b2d

Browse files
committed
test
1 parent 9edb176 commit 9431b2d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

services/actions/notifier_helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func notify(ctx context.Context, input *notifyInput) error {
166166
ref = git.RefNameFromBranch(input.Repo.DefaultBranch)
167167
}
168168

169-
commitID, err := gitRepo.GetRefCommitIDNew(ref.String())
169+
commitID, err := gitRepo.GetRefCommitIDOld(ref.String())
170170
if err != nil {
171171
return fmt.Errorf("gitRepo.GetRefCommitID: %w", err)
172172
}

services/migrations/gitea_uploader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ func (g *GiteaLocalUploader) CreateReviews(ctx context.Context, reviews ...*base
879879
continue
880880
}
881881

882-
headCommitID, err := g.gitRepo.GetRefCommitIDNew(pr.GetGitHeadRefName())
882+
headCommitID, err := g.gitRepo.GetRefCommitIDOld(pr.GetGitHeadRefName())
883883
if err != nil {
884884
log.Warn("PR #%d GetRefCommitID[%s] in %s/%s: %v, all review comments will be ignored", pr.Index, pr.GetGitHeadRefName(), g.repoOwner, g.repoName, err)
885885
continue

services/mirror/mirror_pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ func SyncPullMirror(ctx context.Context, repoID int64) bool {
493493

494494
// Create reference
495495
if result.oldCommitID == gitShortEmptySha {
496-
commitID, err := gitRepo.GetRefCommitIDNew(result.refName.String())
496+
commitID, err := gitRepo.GetRefCommitIDOld(result.refName.String())
497497
if err != nil {
498498
log.Error("SyncMirrors [repo: %-v]: unable to GetRefCommitID [ref_name: %s]: %v", m.Repo, result.refName, err)
499499
continue

0 commit comments

Comments
 (0)