Allow interface to specify alternate git repo path
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import subprocess
|
||||
from django.conf import settings
|
||||
|
||||
def git_version(request):
|
||||
proc = subprocess.Popen(["git", "describe"], stdout=subprocess.PIPE)
|
||||
proc = subprocess.Popen(["git", "--git-dir", settings.APPVERSION_GIT_REPO, "describe"], stdout=subprocess.PIPE)
|
||||
proc.wait()
|
||||
version = proc.stdout.read().strip()
|
||||
return {"app_version": version}
|
||||
|
Reference in New Issue
Block a user