-# identify svn revision, if an svn working copy
-if test "$1" != "" && test -d "$1/.svn"; then
- revision=`LC_ALL=C svn info $1 | awk '/^Revision: / {printf "%05d\n", $2}'`;
-elif test -d ".svn"; then
- revision=`LC_ALL=C svn info | awk '/^Revision: / {printf "%05d\n", $2}'`;
+# identify a git revision similar to svn based on number of commits, if a git
+# working copy. the last svn commit was rev 1274, so we'll pick up from there
+if test "$1" != "" && test -d "$1/.git"; then
+ revision=`git log --since=2008-12-06 --pretty=oneline | wc -l | awk '{print $1 + 1274}'`;
+elif test -d ".git"; then
+ revision=`git log --since=2008-12-06 --pretty=oneline | wc -l | awk '{print $1 + 1274}'`;