Unverified Commit 280c99da authored by ZigZagT's avatar ZigZagT Committed by GitHub

feat(git): accept `default` and `mainline` as main branches (#11431)

parent 3fca9c89
......@@ -31,7 +31,7 @@ function work_in_progress() {
function git_main_branch() {
command git rev-parse --git-dir &>/dev/null || return
local ref
for ref in refs/{heads,remotes/{origin,upstream}}/{main,trunk}; do
for ref in refs/{heads,remotes/{origin,upstream}}/{main,trunk,mainline,default}; do
if command git show-ref -q --verify $ref; then
echo ${ref:t}
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment