FMCorz / mdk

Moodle Development Kit. A collection of tools meant to make developers' lives easier.
GNU General Public License v3.0
84 stars 47 forks source link

Do not ask about master branch if a main branch exists #225

Closed andrewnicols closed 6 months ago

andrewnicols commented 6 months ago

Fixes #224

andrewnicols commented 6 months ago

debug output when using this:

➜  sm git:(main) mdk fix 80072                          
/opt/homebrew/bin/git show-ref --verify --quiet refs/remotes/origin/main
/opt/homebrew/bin/git remote -v
/opt/homebrew/bin/git config --get remote.origin.url
/opt/homebrew/bin/git show-ref --verify --quiet refs/heads/MDL-80072-main
/opt/homebrew/bin/git checkout MDL-80072-main
Branch MDL-80072-main checked out
junpataleta commented 6 months ago

Thanks, Andrew! Merged!