1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

fix(git): fix branch info

This commit is contained in:
wsdjeg 2022-04-22 21:00:33 +08:00
parent 00cab12850
commit cf719fae36

View File

@ -83,9 +83,11 @@ function! s:on_stdout_show_branch(id, data, event) abort
let b = s:STR.trim(join(a:data, '')) let b = s:STR.trim(join(a:data, ''))
if !empty(b) if !empty(b)
let pwd = get(s:job_pwds, 'jobid' . a:id, '') let pwd = get(s:job_pwds, 'jobid' . a:id, '')
let s:branch_info[pwd] = { if !empty(pwd)
\ 'name' : b, let s:branch_info[pwd] = {
\ } \ 'name' : b,
\ }
endif
endif endif
endfunction endfunction