[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#611175: zsh: VCS_INFO wrongly detects svn repositories



On 27.01.2011 17:43, Frank Terbeck wrote:
> I suggest, debian does the same (maybe you could update your patch for
> debian's convenience).
> 
> One nit: you reported this against version 4.3.6-6; however vcs_info was
> shipped with zsh 4.3.7 for the first time. ...so unless debian's 4.3.6-6
> package ships it on its own, I doubt that's correct. :)
I forgot to check for a version mismatch. I just send the report from an
older debian box with mail setup for reportbug. The actual version was
4.3.10 but that doesn't really matter anyway.

--- a/VCS_INFO_detect_svn	2011-01-27 17:50:51.000000000 +0100
+++ b/VCS_INFO_detect_svn	2011-01-27 17:51:09.000000000 +0100
@@ -7,5 +7,5 @@
 [[ $1 == '--flavours' ]] && return 1
 
 VCS_INFO_check_com ${vcs_comm[cmd]} || return 1
-[[ -d ".svn" ]] && return 0
+[[ -f ".svn/entries" || -f ".svn/format" ]] && return 0
 return 1


Reply to: