about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-04-22 13:57:11 +0200
committertoonn <toonn@toonn.io>2021-04-22 13:57:11 +0200
commitf0d41272974f49a2974949fefea7192909491dc1 (patch)
tree0ea85439cf5bd74a4de76a2e985f8f4f38c1ec3c /ranger
parent277e1db745a817f522278487b97f1518b54d668e (diff)
parent4933d6d6e12613f636faf304c057af0af8ac5b70 (diff)
downloadranger-f0d41272974f49a2974949fefea7192909491dc1.tar.gz
Merge remote-tracking branch 'omermizr/patch-1'
Diffstat (limited to 'ranger')
-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):