Skip to content
Browse files

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

  • Loading branch information...
1 parent c436320 commit abcf0ed74032ca89c8e09fbccebcb8f3f9847a1c @apendleton apendleton committed
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

0 comments on commit abcf0ed

Please sign in to comment.
Something went wrong with that request. Please try again.