summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authoru91o <u91o@airmail.cc>2019-06-04 05:47:26 +0100
committeru91o <u91o@airmail.cc>2019-06-04 05:47:26 +0100
commit2dad0b8b4ee6832aff39949e82ed419244abf397 (patch)
treec50cef5e7b371412d524ddc8cf95e81fd414a02f /ranger
parenta47fd0480518f0ea1ad4a407be50a87a5690a94a (diff)
downloadranger-2dad0b8b4ee6832aff39949e82ed419244abf397.tar.gz
fix to call git describe in ranger's source directory
Diffstat (limited to 'ranger')
-rw-r--r--ranger/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/__init__.py b/ranger/__init__.py
index c7091a3e..25087ea5 100644
--- a/ranger/__init__.py
+++ b/ranger/__init__.py
@@ -23,6 +23,7 @@ def version_helper():
         try:
             git_describe = subprocess.Popen(['git', 'describe'],
                                             universal_newlines=True,
+                                            cwd=RANGERDIR,
                                             stdout=subprocess.PIPE)
             (git_description, _) = git_describe.communicate()
             version_string = version_string.format(git_description.strip('\n'))