No more error on new repository. Fixes #9

master
Martin Gondermann 13 years ago
parent 08355a2306
commit 159c5e32d4
  1. 2
      gitprompt.sh

@ -105,7 +105,7 @@ function setGitPrompt() {
# Fech repo if local is stale for more than $GIT_FETCH_TIMEOUT minutes # Fech repo if local is stale for more than $GIT_FETCH_TIMEOUT minutes
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
git fetch --quiet [[ -n $(git remote show) ]] && git fetch --quiet
fi fi
local -a GitStatus local -a GitStatus

Loading…
Cancel
Save