diff options
| author | JINNOUCHI Yasushi <me@delphinus.dev> | 2021-01-12 17:06:16 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-12 09:06:16 +0100 |
| commit | 95264ada7922318f723b74457f3507a9c535ecb4 (patch) | |
| tree | ef9cd4c8fc412d97e033a92d65e16d1669c9325f /lua | |
| parent | 4ca523232ec8ed6da56b57f3ec501693f63dc723 (diff) | |
fix: git_branch only remove remotes/origin part (#423)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/telescope/builtin/git.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/telescope/builtin/git.lua b/lua/telescope/builtin/git.lua index 309f6e2..c2d31c6 100644 --- a/lua/telescope/builtin/git.lua +++ b/lua/telescope/builtin/git.lua @@ -74,7 +74,7 @@ git.branches = function(opts) for _, v in ipairs(output) do if not string.match(v, 'HEAD') and v ~= '' then v = string.gsub(v, '.* ', '') - v = string.gsub(v, '^remotes/.*/', '') + v = string.gsub(v, '^remotes/[^/]*/', '') tmp_results[v] = true end end |
