diff --git a/.bash.d/git.sh b/.bash.d/git.sh index cd97783a..773aa16e 100644 --- a/.bash.d/git.sh +++ b/.bash.d/git.sh @@ -881,7 +881,7 @@ updatemodules(){ if [ -d "$submodule" ] && ! [ -L "$submodule" ]; then pushd "$submodule" || continue git stash - git checkout master + git checkout "$(git_default_branch)" git pull --no-edit git submodule update # shellcheck disable=SC2164