mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:50:05 +08:00
fix(git): fix wrong branch name
This commit is contained in:
parent
f791f5bbd8
commit
8077f78d13
@ -131,7 +131,7 @@ local function get_cursor_info()
|
|||||||
elseif vim.startswith(l, ' ') then
|
elseif vim.startswith(l, ' ') then
|
||||||
local remote_line = vim.fn.search('^ ▼ ', 'bnW')
|
local remote_line = vim.fn.search('^ ▼ ', 'bnW')
|
||||||
if remote_line > 0 then
|
if remote_line > 0 then
|
||||||
c.branch = string.gsub(string.sub(vim.fn.getline(remote_line), 7), updating_extra_text, '') .. string.sub(l, 12)
|
c.branch = string.gsub(string.sub(vim.fn.getline(remote_line), 7), updating_extra_text, '') .. '/' .. string.sub(l, 12)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user