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