GIT_PROMPT_END was broken on directories without repository

fixes #19
master
Martin Gondermann 12 years ago
parent cce1eb43fb
commit 1f566c7be3
  1. 2
      gitprompt.sh

@ -99,8 +99,6 @@ function setGitPrompt() {
git_prompt_config
EMPTY_PROMPT=${OLD_GITPROMPT}
local repo=`git rev-parse --show-toplevel 2> /dev/null`
if [[ ! -e "${repo}" ]]; then
PS1="${EMPTY_PROMPT}"

Loading…
Cancel
Save