mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 02:20:09 +00:00
feat(git): accept default
and mainline
as main branches (#11431)
This commit is contained in:
parent
3fca9c8933
commit
280c99dae6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue