Merge pull request #64 from jcarouth/master

Get rid of "Fatal error: not a git repository…" errors
pull/66/head
Travis Swicegood 2011-06-27 21:13:15 -07:00
commit d3a7bdc996
1 changed files with 4 additions and 3 deletions

View File

@ -17,11 +17,12 @@ fi
doubletime_scm_prompt() { doubletime_scm_prompt() {
CHAR=$(scm_char) CHAR=$(scm_char)
if [ $CHAR = $SCM_NONE_CHAR ] if [ $CHAR = $SCM_NONE_CHAR ]; then
then
return return
else elif [ $CHAR = $SCM_GIT_CHAR ]; then
echo "$(git_prompt_status)" echo "$(git_prompt_status)"
else
echo "[$(scm_prompt_info)]"
fi fi
} }