mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-11-01 23:11:09 +00:00
fix: hook post-receive for sha256 repos
(cherry picked from commit 5e73c67d67)
This commit is contained in:
parent
6de1f714f3
commit
3f9f6f1350
8 changed files with 50 additions and 22 deletions
|
|
@ -227,7 +227,7 @@ func HookPostReceive(ctx *gitea_context.PrivateContext) {
|
|||
}
|
||||
|
||||
// If we've pushed a branch (and not deleted it)
|
||||
if !git.IsEmptyCommitID(newCommitID) && refFullName.IsBranch() {
|
||||
if !git.IsEmptyCommitID(newCommitID, nil) && refFullName.IsBranch() {
|
||||
// First ensure we have the repository loaded, we're allowed pulls requests and we can get the base repo
|
||||
if repo == nil {
|
||||
repo = loadRepository(ctx, ownerName, repoName)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue