Merge pull request #31 from ogr3/master

Run the async call and disown in the same subshell

Thanks, looks ok to me. This should fix #30
master
Martin Gondermann 12 years ago
commit 85d717326e
  1. 6
      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" (
disown -h async_run "git fetch --quiet"
disown -h
)
fi fi
fi fi
} }

Loading…
Cancel
Save