]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Capture stderr for 'git describe'
authorStephen Finucane <stephen@that.guru>
Thu, 13 Apr 2017 20:48:21 +0000 (21:48 +0100)
committerStephen Finucane <stephen@that.guru>
Sat, 15 Apr 2017 00:25:50 +0000 (01:25 +0100)
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

index e38f50cd066070b4c38ab77b9ab1bd14686196d6..16b7f6173acb7cbfaf27ba395e65e843e25a13e4 100644 (file)
@@ -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 ''