Fix check for empty remote

This commit is contained in:
Tim Pope
2018-08-06 01:45:10 -04:00
parent 4bf7f2fd69
commit 73ed8e8a71

View File

@@ -225,7 +225,7 @@ function! s:Remote(dir) abort
let remote = len(head) ? fugitive#Config('branch.' . head . '.remote') : ''
let i -= 1
endwhile
return remote =~# '\.\=$' ? 'origin' : remote
return remote =~# '^\.\=$' ? 'origin' : remote
endfunction
function! fugitive#RemoteUrl(...) abort