Skip to content

Commit

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

Partial Backport go-gitea#16705

There was an inadvertent breaking change in go-gitea#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 go-gitea#16688

Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath authored and Gitea committed Aug 24, 2021
1 parent 66afae7 commit 697c4e6
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 697c4e6

Please sign in to comment.