From 1de030e2d0919d8e8f6ea15df702e0e42e2e43a4 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 29 Aug 2011 20:56:21 -0400 Subject: [PATCH] Treat . remote as origin in :Gbrowse --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 6742214..f775064 100644 --- 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]