motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 73ed8e8a7183e8aee91d5633704257c232af9b24 (tree)
parent 4bf7f2fd697e6404a2353eabc534eef6e9579755
Author: Tim Pope <code@tpope.net>
Date:   Mon,  6 Aug 2018 01:45:10 -0400

Fix check for empty remote

Diffstat:
Mautoload/fugitive.vim | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -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