When finding the default branch, we can also check for the existence of origin/main and origin/master and use the trimmed version of one of them if possible.
Pull request: https://github.com/WebKit/WebKit/pull/809
Committed r294513 (250770@main): <https://commits.webkit.org/250770@main> Reviewed commits have been landed. Closing PR #809 and removing active labels.
<rdar://problem/93613466>