Skip to content

Commit 71b3384

Browse files
committed
fix can't push git notes bug
Signed-off-by: a1012112796 <[email protected]>
1 parent bbf9f41 commit 71b3384

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/private/hook.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,8 @@ func HookPreReceive(ctx *gitea_context.PrivateContext) {
466466
})
467467
return
468468
}
469+
} else if strings.HasPrefix(refFullName, git.NotesRef) {
470+
continue
469471
} else {
470472
log.Error("Unexpected ref: %s", refFullName)
471473
ctx.JSON(http.StatusInternalServerError, private.Response{

0 commit comments

Comments
 (0)