diff --git a/gitprompt.sh b/gitprompt.sh index 17bb5da..b0b355e 100644 --- a/gitprompt.sh +++ b/gitprompt.sh @@ -110,10 +110,8 @@ function checkUpstream() { if [[ ! -e "${FETCH_HEAD}" || -e `find "${FETCH_HEAD}" -mmin +${GIT_PROMPT_FETCH_TIMEOUT}` ]] then if [[ -n $(git remote show) ]]; then - ( - async_run "git fetch --quiet" - disown -h - ) + async_run "git fetch --quiet" + disown -h fi fi }