This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle cases where origin/HEAD doesn't exist in git-webkit
https://bugs.webkit.org/show_bug.cgi?id=240693 Reviewed by Jonathan Bedard. * Tools/Scripts/libraries/webkitscmpy/webkitscmpy/local/git.py: (Git.default_branch): This makes several changes to default_branch: * We attempt origin/HEAD, origin/main, and origin/master before trying to guess based on all branches. * When guessing based on all branches, prefer main over master. Additionally, this changes the searching to use `--symbolic-full-ref`, as we only ever want refs to be returned, and this takes away the guesswork parsing. Canonical link: https://commits.webkit.org/250770@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294513 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 1 changed file with 14 additions and 9 deletions.