Run the async_run and disown in a subshell to suppress Done output

master
fredup 12 years ago
parent 2b47ae9d7c
commit 051ffa0c2e
  1. 2
      gitprompt.sh

@ -110,8 +110,10 @@ function checkUpstream() {
if [[ ! -e "${FETCH_HEAD}" || -e `find "${FETCH_HEAD}" -mmin +${GIT_PROMPT_FETCH_TIMEOUT}` ]] if [[ ! -e "${FETCH_HEAD}" || -e `find "${FETCH_HEAD}" -mmin +${GIT_PROMPT_FETCH_TIMEOUT}` ]]
then then
if [[ -n $(git remote show) ]]; then if [[ -n $(git remote show) ]]; then
(
async_run "git fetch --quiet" async_run "git fetch --quiet"
disown -h disown -h
)
fi fi
fi fi
} }

Loading…
Cancel
Save