Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating sync utility to use git, like datacommons was using.

  • Loading branch information...
commit abcf0ed74032ca89c8e09fbccebcb8f3f9847a1c 1 parent c436320
@apendleton apendleton authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 util/sync.py
View
7 util/sync.py
@@ -1,3 +1,10 @@
+import subprocess, os
+git = subprocess.Popen('cd %s; git log -n 1 --raw --oneline' % os.path.dirname(os.path.abspath(__file__)), shell=True, stdout=subprocess.PIPE)
+out, err = git.communicate()
+__git_rev__ = out.split(' ')[0]
+
+def git_cache_fix(s):
+ return "g=%s" % __git_rev__
def cache_fix(s):
from settings import MEDIASYNC, MEDIA_ROOT
Please sign in to comment.
Something went wrong with that request. Please try again.