]> code.citadel.org Git - citadel.git/commitdiff
Another attempt at fixing svn_revision for git
authorArt Cancro <ajc@citadel.org>
Tue, 31 Aug 2010 22:33:35 +0000 (18:33 -0400)
committerArt Cancro <ajc@citadel.org>
Tue, 31 Aug 2010 22:33:35 +0000 (18:33 -0400)
citadel/scripts/mk_svn_revision.sh

index 8173fff3045c3c01defed5e83cdbc1c5c290f176..a325bf3348df67208bc12c6528dfa71f543e84f3 100755 (executable)
@@ -24,7 +24,7 @@ if test -d $SRC_DIR/.svn  ; then
                CAN_BUILD_SVN_REVISION="yes"
        fi
 else 
-    if git status >/dev/null 2>&1; then 
+    if test -d $SRC_DIR/../.svn  ; then
        echo "have Git repository."
        BUILD=`/usr/bin/git log -1 --pretty=%H . `
        echo "This code base git-revision: $BUILD"