diff mbox

Capture stderr for 'git describe'

Message ID 20170413204821.17445-1-stephen@that.guru
State Accepted
Headers show

Commit Message

Stephen Finucane April 13, 2017, 8:48 p.m. UTC
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(+)

Comments

Stephen Finucane April 15, 2017, 12:34 a.m. UTC | #1
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 mbox

Patch

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 ''