You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zeripath 09f7d84f4c
Ensure rejected push to refs/pull/index/head fails nicely (#11724)
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>
4 years ago
..
check.go Only update merge_base in checker if not already merged (#10908) 4 years ago
check_test.go Only check for conflicts/merging if the PR has not been merged in the interim (#10132) 4 years ago
commit_status.go Fix bug on pull view when required status check no ci result (#10648) 4 years ago
lfs.go Add basic repository lfs management (#7199) 5 years ago
main_test.go Move some pull request functions from models to services (#9266) 5 years ago
merge.go Prevent merge of outdated PRs on protected branches (#11012) 4 years ago
patch.go Generate Diff and Patch direct from Pull head (#10936) 4 years ago
pull.go Ensure rejected push to refs/pull/index/head fails nicely (#11724) 4 years ago
pull_test.go Move PushToBaseRepo from models to services/pull (#9352) 5 years ago
review.go Display pull request head branch even the branch deleted or repository deleted (#10413) 4 years ago
temp_repo.go Prevent deadlock in pull_service.GetDiverging(pr) (#10905) 4 years ago
update.go Check Push permissions on IsUserAllowedToUpdate (#11448) 4 years ago