From 9d46dda2f4368436a65b630b15e531b76371950d Mon Sep 17 00:00:00 2001 From: piecka Date: Tue, 25 Mar 2025 09:48:58 +0100 Subject: [PATCH] try: fixing stuff --- .zshrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.zshrc b/.zshrc index 981d79f..d09568e 100644 --- a/.zshrc +++ b/.zshrc @@ -354,6 +354,10 @@ __alias__() { alias gcm="git commit -m" alias gpu="git push --recurse-submodule=on-demand" gsu() { + echo "${YELLOW}| git submodule update --init --recursive |${NC}" + git submodule update --init --recursive && + echo "${CYAN}-- updated submodules recursively${NC}" + echo "${YELLOW}-- Checking submodule branches... --${NC}" git submodule foreach ' branch=$(git symbolic-ref --short HEAD 2>/dev/null || echo "detached") @@ -370,14 +374,10 @@ __alias__() { git submodule foreach git pull --recurse-submodule && echo "${CYAN}-- pulled down submodules recursively${NC}" - echo "${YELLOW}| git submodule update --init --recursive |${NC}" - git submodule update --init --recursive && - echo "${CYAN}-- updated submodules recursively${NC}" - gUpdateModules() { if git diff --quiet .; then echo "${YELLOW}Staging changes...${NC}" - git add . + git add . || echo "GIT ADD MISSFUNCTION" sleep 0.3 if git commit -m " update: submodules"; then echo "${CYAN}Changes committed successfully.${NC}"