about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/ext/vcs/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/vcs/git.py b/ranger/ext/vcs/git.py
index e5f74ee1..c39ab3eb 100644
--- a/ranger/ext/vcs/git.py
+++ b/ranger/ext/vcs/git.py
@@ -177,7 +177,7 @@ class Git(Vcs):
         if head is None:
             return 'detached'
 
-        match = re.match('refs/heads/([^/]+)', head)
+        match = re.match('refs/heads/(.+)', head)
         return match.group(1) if match else None
 
     def data_info(self, rev=None):