-if True:
- # this is a fast variant using the base of the current working directory
- # (ignores uncommitted modifications)
- cmd = "svn export -q -rBASE . /tmp/getstats.%d" % pid
-else:
- # this is a slower variant that may export the whole tree across
- # the net
- cmd = "svn export -rCOMMITTED . /tmp/getstats.%d" % pid
+os.mkdir("/tmp/getstats.%d" % pid)
+
+cmd = "git archive --format=tar HEAD | ( cd /tmp/getstats.%d && tar -xf -)" % pid