Added a configuration variable to globally disable the remote fetching (also fix for #59)

master
Martin Gondermann 12 years ago
parent 1b78dfb6c8
commit f66e4e2984
  1. 8
      gitprompt.sh

@ -183,12 +183,16 @@ function setGitPrompt() {
return
fi
local FETCH_REMOTE_STATUS=true
local FETCH_REMOTE_STATUS=1
if [[ "x${GIT_PROMPT_FETCH_REMOTE_STATUS}" == "x0" ]]; then
FETCH_REMOTE_STATUS=0
fi
if [[ -e "${repo}/.bash-git-rc" ]]; then
source "${repo}/.bash-git-rc"
fi
if [ "${FETCH_REMOTE_STATUS}" == "true" ]; then
if [ "x${FETCH_REMOTE_STATUS}" == "x1" ]; then
checkUpstream
fi

Loading…
Cancel
Save