async_run and disown in subshell when calling to suppress Done output

master
ogr3 12 years ago
parent 00a79b0777
commit e70a107295
  1. 2
      gitprompt.sh

@ -110,8 +110,10 @@ 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
)
fi
fi
}

Loading…
Cancel
Save