diff --git a/comptime.sh b/comptime.sh
index 1bd35b62903087b5cd7922d0ca71353f0a5da6eb..703bb2d3549cbd890ab7e166722869bd60c7bbee 100755
--- a/comptime.sh
+++ b/comptime.sh
@@ -5,7 +5,7 @@ if [ x"$1" != x ]; then
 fi
 
 versiongit() {
-	gitversion=`git svn log HEAD --limit=1 --oneline | cut -f 1 -d " "`
+	gitversion=`git describe`
 	cat <<EOF > $path/comptime.h
 
 // Do not edit!  This file was autogenerated