summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--12_Prompts.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/12_Prompts.zsh b/12_Prompts.zsh
index 7a184d1..979c340 100644
--- a/12_Prompts.zsh
+++ b/12_Prompts.zsh
@@ -229,7 +229,7 @@ __subvcsbranches () {
# Get recursive submodules statuses
for SUBMODULE in $(git config --get zsh.recurse-dirs)
do
- if [ -d $(dirname $GIT_DIR)/$SUBMODULE ]
+ if [ -d $(dirname $GIT_DIR)/$SUBMODULE/.git -o -d $GIT_DIR/modules/$SUBMODULE ]
then
GITBRANCH+=${GITBRANCH:+$(tput cuf1)}
GITBRANCH+=$C_$_prompt_colors[bar]$_C"[%{%B%}$SUBMODULE%{%b%}:"