No more error on new repository. Fixes #14

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

@ -105,7 +105,7 @@ function setGitPrompt() {
# 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}` ]]
then
git fetch --quiet
[[ -n $(git remote show) ]] && git fetch --quiet
fi
local -a GitStatus

Loading…
Cancel
Save