Skip to content

Commit

Permalink
fix can't push git notes bug
Browse files Browse the repository at this point in the history
Signed-off-by: a1012112796 <[email protected]>
  • Loading branch information
a1012112796 committed Aug 14, 2021
1 parent bbf9f41 commit 71b3384
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routers/private/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ func HookPreReceive(ctx *gitea_context.PrivateContext) {
})
return
}
} else if strings.HasPrefix(refFullName, git.NotesRef) {
continue
} else {
log.Error("Unexpected ref: %s", refFullName)
ctx.JSON(http.StatusInternalServerError, private.Response{
Expand Down

0 comments on commit 71b3384

Please sign in to comment.