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 1de030e2d0919d8e8f6ea15df702e0e42e2e43a4 (tree)
parent ef4bcdb44f163a922bb36d9ad61ec5b743a62431
Author: Tim Pope <code@tpope.net>
Date:   Mon, 29 Aug 2011 20:56:21 -0400

Treat . remote as origin in :Gbrowse

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

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -1605,7 +1605,7 @@ function! s:Browse(bang,line1,count,...) abort endif if branch != '' let remote = s:repo().git_chomp('config','branch.'.branch.'.remote') - if remote ==# '' + if remote =~# '^\.\=$' let remote = 'origin' elseif rev[0:strlen(branch)-1] ==# branch && rev[strlen(branch)] =~# '[:^~@]' let rev = s:repo().git_chomp('config','branch.'.branch.'.merge')[11:-1] . rev[strlen(branch):-1]