From 291e7031553e3c71825de9a2f0269bca6cee89e3 Mon Sep 17 00:00:00 2001 From: Christoph Niethammer Date: Sat, 3 Dec 2011 20:21:33 +0000 Subject: [PATCH] Minor bugfix: fixing svn revision detection. --- functions.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/functions.sh b/functions.sh index 3f3c8f8..f6c4ebf 100644 --- a/functions.sh +++ b/functions.sh @@ -128,11 +128,9 @@ sit_setperms() { sit_sitinfo() { local SIT_VERSION="unknown" if [ "$(svnversion $SIT_PATH)" != "exported" ] ; then - sit_info "SVN" SIT_VERSION="svn-r$(svnversion $SIT_PATH)" - elif [ git svn find-rev r1 ] ; then - sit_info "GIT" - SIT_VERSION="$(cd $SIT_PATH; git svn find-rev HEAD) (git svn)"; + elif cd $SIT_PATH; git svn find-rev r1 >/dev/null 2>&1 ; then + SIT_VERSION="svn-r$(cd $SIT_PATH; git svn find-rev HEAD)"; else SIT_VERSION="unknown" fi