Fixed problems with incompatible svn working copy formats.

This commit is contained in:
Christoph Niethammer 2012-11-28 08:52:33 +00:00
parent 9bd98e935b
commit fed13dd108

View file

@ -135,12 +135,10 @@ sit_setperms() {
sit_sitinfo() {
local SIT_VERSION="unknown"
if [ "$(svnversion $SIT_PATH)" != "exported" ] ; then
if svnversion $SIT_PATH >/dev/null 2>/dev/null && test "$(svnversion $SIT_PATH)" != "exported" ; then
SIT_VERSION="svn-r$(svnversion $SIT_PATH)"
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
echo "Invocation: $(ps --pid $$ -o cmd | tail -n 1)"
echo "Started: $(date)"