summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.zlogin1
1 files changed, 1 insertions, 0 deletions
diff --git a/.zlogin b/.zlogin
index c398626..706783f 100644
--- a/.zlogin
+++ b/.zlogin
@@ -5,6 +5,7 @@ fi
# check to see if git repository has been updated
function () {
+ [ $SHLVL -ne 1 ] && return
if command -v git >|/dev/null && git -C $HOME rev-parse >|/dev/null 2>&1 ; then
local local_head="$(git -C $HOME show-ref --hash --heads master)"
local origin_head="$(GIT_SSH_COMMAND="ssh -o BatchMode=yes -o ConnectTimeout=1" git -C $HOME ls-remote --heads origin master 2>|/dev/null | cut -f1)"