From 7b302f3da11dfccf54ced9c98a84ed86f0b45e85 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 18 Apr 2023 21:01:21 +0200 Subject: always fetch on sgd --- config/essentials/zsh/functions.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/essentials') diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index fefc125..1dc31b0 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -89,12 +89,12 @@ sgd () { d="$PWD" for dir in ${1:-$HOME/src/*} do - cd $dir + cd $dir + git fetch > /dev/null 2>&1 if [ "$(git status --short 2>/dev/null | grep -v "??" | head -1)" ] then # There are changes, and this is a git repo echo "$PWD \e[1;31m*changes\e[0m" - git fetch > /dev/null 2>&1 fi test "$(parse_git_remote)" && echo "$PWD \e[0;32m*push/pull\e[0m" -- cgit v1.2.3