Explicitly pass the application path to Git.
Without this, it doesn't work on our production environment.
This commit is contained in:
parent
def1a3d080
commit
4b1b02318b
@ -120,7 +120,7 @@ if app.config['DEBUG']:
|
||||
|
||||
# Get the Git hash
|
||||
try:
|
||||
git_cmd = ['git', 'describe', '--always']
|
||||
git_cmd = ['git', '-C', app_root, 'describe', '--always']
|
||||
description = subprocess.check_output(git_cmd)
|
||||
app.config['GIT_REVISION'] = description.strip()
|
||||
except (subprocess.CalledProcessError, OSError) as ex:
|
||||
|
Loading…
x
Reference in New Issue
Block a user