about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authoromermizr <36623475+omermizr@users.noreply.github.com>2021-04-18 08:44:54 +0300
committerGitHub <noreply@github.com>2021-04-18 08:44:54 +0300
commit4933d6d6e12613f636faf304c057af0af8ac5b70 (patch)
tree0ea85439cf5bd74a4de76a2e985f8f4f38c1ec3c /ranger
parent277e1db745a817f522278487b97f1518b54d668e (diff)
downloadranger-4933d6d6e12613f636faf304c057af0af8ac5b70.tar.gz
fix(git): support hierarchical branch names
Resolve https://github.com/ranger/ranger/issues/2311
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):