diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 9897b0f7c..174253134 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -31,7 +31,7 @@ function git_develop_branch() { return 1 } -# Get the default branch name from remote HEAD or fallback to common branch names +# Get the default branch name from common branch names or fallback to remote HEAD function git_main_branch() { command git rev-parse --git-dir &>/dev/null || return