Implemented a per repository possibility to turn of the fetching of the remote status (fixes #59)

master
Martin Gondermann 12 years ago
parent 71001b1215
commit 1b78dfb6c8
  1. 10
      gitprompt.sh

@ -183,7 +183,15 @@ function setGitPrompt() {
return
fi
checkUpstream
local FETCH_REMOTE_STATUS=true
if [[ -e "${repo}/.bash-git-rc" ]]; then
source "${repo}/.bash-git-rc"
fi
if [ "${FETCH_REMOTE_STATUS}" == "true" ]; then
checkUpstream
fi
updatePrompt
}

Loading…
Cancel
Save