Prevent server 500 on compare branches with no common history (#6555)

* Prevent 500 if there is no common mergebase
* Prevent creation of PR with no history
This commit is contained in:
zeripath 2019-04-09 21:45:58 +01:00 committed by GitHub
parent 7350e439bf
commit 89cc7c646d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 15 deletions

View file

@ -684,6 +684,7 @@ editor.cannot_commit_to_protected_branch = Cannot commit to protected branch '%s
commits.desc = Browse source code change history.
commits.commits = Commits
commits.no_commits = No commits in common. '%s' and '%s' have entirely different histories.
commits.search = Search commits…
commits.find = Search
commits.search_all = All Branches