Merge pull request #1981 from william-richard/make-default-branch-match-exactly-main
Look for branches that are literally the word mainpull/1986/head
commit
447c89aa0e
|
|
@ -199,7 +199,7 @@ function gdv() {
|
|||
}
|
||||
|
||||
function get_default_branch() {
|
||||
if git branch | grep -q main; then
|
||||
if git branch | grep -q '^. main\s*$'; then
|
||||
echo main
|
||||
else
|
||||
echo master
|
||||
|
|
|
|||
Loading…
Reference in New Issue