mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
Fix check for empty remote
This commit is contained in:
@@ -225,7 +225,7 @@ function! s:Remote(dir) abort
|
|||||||
let remote = len(head) ? fugitive#Config('branch.' . head . '.remote') : ''
|
let remote = len(head) ? fugitive#Config('branch.' . head . '.remote') : ''
|
||||||
let i -= 1
|
let i -= 1
|
||||||
endwhile
|
endwhile
|
||||||
return remote =~# '\.\=$' ? 'origin' : remote
|
return remote =~# '^\.\=$' ? 'origin' : remote
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! fugitive#RemoteUrl(...) abort
|
function! fugitive#RemoteUrl(...) abort
|
||||||
|
|||||||
Reference in New Issue
Block a user