From a2fd078056d1a8692409fec80d80f1bceebb3f9a Mon Sep 17 00:00:00 2001 From: piecka Date: Tue, 13 May 2025 16:00:23 +0200 Subject: [PATCH] =?UTF-8?q?=EF=80=99=20update:=20submodules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 2fd4404..0248dab 100644 --- a/.zshrc +++ b/.zshrc @@ -369,9 +369,9 @@ __git__() { echo "${CYAN}${BOLD}-- Checking submodule branches... --${NC}" git submodule foreach ' + echo "${RED}Submodule: $name ${NC}" 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