From 2817abd914eb904beec83567d2638d41f18d84a1 Mon Sep 17 00:00:00 2001 From: nojhan Date: Tue, 21 Aug 2012 22:03:42 +0200 Subject: [PATCH] do not search the .svn directory (subversion 1.7 compatibility) --- liquidprompt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/liquidprompt b/liquidprompt index 51e8139..b72c8eb 100755 --- a/liquidprompt +++ b/liquidprompt @@ -657,7 +657,7 @@ _lp_hg_branch_color() # For the first level of the repository, gives the repository name _lp_svn_branch() { - [[ "$LP_ENABLE_SVN" != 1 || ! -d '.svn' ]] && return + [[ "$LP_ENABLE_SVN" != 1 ]] && return local root local url eval $(LANG=C LC_ALL=C svn info 2>/dev/null | sed -n 's/^URL: \(.*\)/url="\1"/p;s/^Repository Root: \(.*\)/root="\1"/p' ) @@ -679,7 +679,7 @@ _lp_svn_branch() # informations are only displayed for the CURRENT directory. _lp_svn_branch_color() { - [[ "$LP_ENABLE_SVN" != 1 || ! -d .svn ]] && return + [[ "$LP_ENABLE_SVN" != 1 ]] && return local branch branch="$(_lp_svn_branch)"