Browse Source

Fix Notify Create Ref Error on tag creation (#8936)

* Fix Notify Create Ref Error on tag creation

* Just use the provided full ref instead of BranchCommit
tags/v1.11.0-rc1
zeripath 4 years ago
parent
commit
253fdfb7fa
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      modules/notification/webhook/webhook.go

+ 2
- 2
modules/notification/webhook/webhook.go View File

@@ -573,9 +573,9 @@ func (m *webhookNotifier) NotifyCreateRef(pusher *models.User, repo *models.Repo
return
}

shaSum, err := gitRepo.GetBranchCommitID(refName)
shaSum, err := gitRepo.GetRefCommitID(refFullName)
if err != nil {
log.Error("GetBranchCommitID[%s]: %v", refFullName, err)
log.Error("GetRefCommitID[%s]: %v", refFullName, err)
return
}


Loading…
Cancel
Save