diff --git a/.zshrc b/.zshrc index ac4d0f8..2fd4404 100644 --- a/.zshrc +++ b/.zshrc @@ -371,6 +371,7 @@ __git__() { git submodule foreach ' branch=$(git symbolic-ref --short HEAD 2>/dev/null || echo "detached") if [ "$branch" = "detached" ]; then + echo "${RED}Submodule: $name ${NC}" default_branch=$(git config -f $toplevel/.gitmodules submodule.$name.branch || echo "main") echo "${RED}${BOLD}Submodule $name is detached. Checking out ${YELLOW} $default_branch${RED}...${NC}" git checkout $default_branch