Fixed bug in git scm plugin where the prompt info would not be displayed in subdirs.

This commit is contained in:
Robin Ramael 2011-02-11 09:09:00 +01:00
commit fe4504cef9

View file

@ -1,5 +1,5 @@
function scm_in_git_repo () { function scm_in_git_repo () {
if [[ -d .git ]]; then if [ "$(git st 2>/dev/null)" ]; then
echo 1 echo 1
fi fi
} }