Minor bugfix: fixing svn revision detection.
This commit is contained in:
parent
11f2867c3e
commit
291e703155
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue