mirror of https://github.com/go-gitea/gitea.git
A pre-receive hook that rejects pushes to refs/pull/index/head will cause a broken PR which causes an internal server error whenever it is viewed. This PR handles prevents the internal server error by handling non-existent pr heads and sends a flash error informing the creator there was a problem. Signed-off-by: Andrew Thornton <art27@cantab.net> |
5 years ago | |
---|---|---|
.. | ||
admin | 5 years ago | |
api/v1 | 5 years ago | |
dev | 6 years ago | |
events | 5 years ago | |
org | 5 years ago | |
private | 5 years ago | |
repo | 5 years ago | |
routes | 5 years ago | |
user | 5 years ago | |
utils | 5 years ago | |
home.go | 5 years ago | |
init.go | 5 years ago | |
install.go | 5 years ago | |
metrics.go | 6 years ago | |
swagger_json.go | 5 years ago |