Merge pull request #21 from bwestlin/master

Fix for when spaces exists in repo path
master
Martin Gondermann 12 years ago
commit 68d965913c
  1. 2
      gitprompt.sh

@ -107,7 +107,7 @@ function setGitPrompt() {
local FETCH_HEAD="${repo}/.git/FETCH_HEAD" local FETCH_HEAD="${repo}/.git/FETCH_HEAD"
# 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
[[ -n $(git remote show) ]] && git fetch --quiet [[ -n $(git remote show) ]] && git fetch --quiet
fi fi

Loading…
Cancel
Save