Skip to content

Commit

Permalink
Fix Notify Create Ref Error on tag creation (#8936)
Browse files Browse the repository at this point in the history
* Fix Notify Create Ref Error on tag creation

* Just use the provided full ref instead of BranchCommit
  • Loading branch information
zeripath authored and sapk committed Nov 12, 2019
1 parent fd1b2a3 commit 253fdfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/notification/webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 253fdfb

Please sign in to comment.