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() {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue