diff --git a/zsh/GitAuto-fetch.zsh b/zsh/GitAuto-fetch.zsh index 4499e44..4ad5e15 100644 --- a/zsh/GitAuto-fetch.zsh +++ b/zsh/GitAuto-fetch.zsh @@ -5,8 +5,8 @@ function git-fetch-all { dir=`command git rev-parse --git-dir` && [[ ! -f $dir/.no_auto_fetch ]] && (( `date +%s` - `date -r $dir/FETCH_LOG +%s 2>/dev/null || echo 0` > $git_auto_fetch_interval )) && - GIT_SSH_COMMAND="command ssh -o BatchMode=yes" \ - command git fetch >/dev/null 2>&1 ; touch $dir/FETCH_LOG &) + ( GIT_SSH_COMMAND="command ssh -o BatchMode=yes" \ + command git fetch >/dev/null 2>&1 & touch $dir/FETCH_LOG & )) } function git-auto-fetch {