Message ID | 20170413204821.17445-1-stephen@that.guru |
---|---|
State | Accepted |
Headers | show |
On Thu, 2017-04-13 at 21:48 +0100, Stephen Finucane wrote: > Capture the error messages thrown if git is not installed. > > Signed-off-by: Stephen Finucane <stephen@that.guru> > Fixes: 7b07b71e ("templates: Add Patchwork version") Trivial fix. Applied.
diff --git a/patchwork/version.py b/patchwork/version.py index e38f50c..16b7f61 100644 --- a/patchwork/version.py +++ b/patchwork/version.py @@ -56,6 +56,7 @@ def get_raw_git_version(): """Returns the raw git version via 'git-describe'.""" try: git_version = subprocess.check_output(['git', 'describe'], + stderr=subprocess.STDOUT, cwd=ROOT_DIR) except (OSError, subprocess.CalledProcessError): return ''
Capture the error messages thrown if git is not installed. Signed-off-by: Stephen Finucane <stephen@that.guru> Fixes: 7b07b71e ("templates: Add Patchwork version") --- patchwork/version.py | 1 + 1 file changed, 1 insertion(+)