diff options
author | omermizr <36623475+omermizr@users.noreply.github.com> | 2021-04-18 08:44:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-18 08:44:54 +0300 |
commit | 4933d6d6e12613f636faf304c057af0af8ac5b70 (patch) | |
tree | 0ea85439cf5bd74a4de76a2e985f8f4f38c1ec3c /ranger | |
parent | 277e1db745a817f522278487b97f1518b54d668e (diff) | |
download | ranger-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.py | 2 |
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): |