diff options
author | toonn <toonn@toonn.io> | 2019-06-06 17:04:13 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2019-06-06 20:50:00 +0200 |
commit | f07425d4e241a8567f0ea31d996946103725f567 (patch) | |
tree | af9d3dc9bab9b6f529b2996ece98b56478ecedbd | |
parent | 4486ecb940e2fbda989df051bb1df7f471bf01f1 (diff) | |
download | ranger-f07425d4e241a8567f0ea31d996946103725f567.tar.gz |
Stop git errors before they reach user
Fixes #1577
-rw-r--r-- | ranger/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/__init__.py b/ranger/__init__.py index 25087ea5..fabaeae9 100644 --- a/ranger/__init__.py +++ b/ranger/__init__.py @@ -24,7 +24,8 @@ def version_helper(): git_describe = subprocess.Popen(['git', 'describe'], universal_newlines=True, cwd=RANGERDIR, - stdout=subprocess.PIPE) + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) (git_description, _) = git_describe.communicate() version_string = version_string.format(git_description.strip('\n')) except (OSError, subprocess.CalledProcessError): |