diff options
author | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-11-13 17:16:59 +0100 |
---|---|---|
committer | Hugues Hiegel <hugues.hiegel@qosmos.com> | 2013-11-13 17:16:59 +0100 |
commit | 7c7a77c803f8c71f988a6ff75eafe19c4c320f55 (patch) | |
tree | 19d652d9dc66902ffb079389ab1aa3402f07c8bd | |
parent | 374c34da6de535a5dc2cfb47048223e1c0e82488 (diff) |
[Prompts] Submodules & submodules
-rw-r--r-- | 12_Prompts.zsh | 2 |
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%}:" |