about summary refs log tree commit diff
path: root/Functions/VCS_Info/VCS_INFO_bydir_detect
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-06-19 21:05:48 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-06-19 21:05:48 +0000
commita5417250d52320f25ffe9c2394a415013dbf03f0 (patch)
tree799a9993ad1af2384ee8071200a195cb417fdb2a /Functions/VCS_Info/VCS_INFO_bydir_detect
parenta1fc66a3cde9c10f7ddf0f6ec301d29698a2b826 (diff)
downloadzsh-a5417250d52320f25ffe9c2394a415013dbf03f0.tar.gz
zsh-a5417250d52320f25ffe9c2394a415013dbf03f0.tar.xz
zsh-a5417250d52320f25ffe9c2394a415013dbf03f0.zip
Frank Terbeck: 27049, 27050, 27051, 27052: VCS_INFO improvements
Diffstat (limited to 'Functions/VCS_Info/VCS_INFO_bydir_detect')
-rw-r--r--Functions/VCS_Info/VCS_INFO_bydir_detect2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/VCS_Info/VCS_INFO_bydir_detect b/Functions/VCS_Info/VCS_INFO_bydir_detect
index aff59f300..7985b6994 100644
--- a/Functions/VCS_Info/VCS_INFO_bydir_detect
+++ b/Functions/VCS_Info/VCS_INFO_bydir_detect
@@ -10,7 +10,7 @@ realbasedir="$(VCS_INFO_realpath ${basedir})"
 while [[ ${realbasedir} != '/' ]]; do
     if [[ -n ${vcs_comm[detect_need_file]} ]] ; then
         [[ -d ${basedir}/${dirname} ]] && \
-        [[ -f ${basedir}/${dirname}/${vcs_comm[detect_need_file]} ]] && \
+        [[ -e ${basedir}/${dirname}/${vcs_comm[detect_need_file]} ]] && \
             break
     else
         [[ -d ${basedir}/${dirname} ]] && break