Minor bugfix: fixing svn revision detection.

This commit is contained in:
Christoph Niethammer 2011-12-03 20:21:33 +00:00
parent 11f2867c3e
commit 291e703155

View file

@ -128,11 +128,9 @@ sit_setperms() {
sit_sitinfo() { sit_sitinfo() {
local SIT_VERSION="unknown" local SIT_VERSION="unknown"
if [ "$(svnversion $SIT_PATH)" != "exported" ] ; then if [ "$(svnversion $SIT_PATH)" != "exported" ] ; then
sit_info "SVN"
SIT_VERSION="svn-r$(svnversion $SIT_PATH)" SIT_VERSION="svn-r$(svnversion $SIT_PATH)"
elif [ git svn find-rev r1 ] ; then elif cd $SIT_PATH; git svn find-rev r1 >/dev/null 2>&1 ; then
sit_info "GIT" SIT_VERSION="svn-r$(cd $SIT_PATH; git svn find-rev HEAD)";
SIT_VERSION="$(cd $SIT_PATH; git svn find-rev HEAD) (git svn)";
else else
SIT_VERSION="unknown" SIT_VERSION="unknown"
fi fi