Skip to content

Commit

Permalink
Restore functionality for pushing non-standard refs (Partial #16705) (#…
Browse files Browse the repository at this point in the history
…16706)

Partial Backport #16705

There was an inadvertent breaking change in #15629 meaning that notes refs and other
git extension refs will be automatically rejected.

This PR removes this incorrect forced rejection of non-standard refs.

Fix #16688

Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath authored Aug 17, 2021
1 parent 0dc8082 commit 2543767
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions routers/private/hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,6 @@ func HookPreReceive(ctx *gitea_context.PrivateContext) {
})
return
}
} else {
log.Error("Unexpected ref: %s", refFullName)
ctx.JSON(http.StatusInternalServerError, private.Response{
Err: fmt.Sprintf("Unexpected ref: %s", refFullName),
})
}
}

Expand Down

0 comments on commit 2543767

Please sign in to comment.