From 658f51d36692c1b3114e3d089d69bf4c8352e13f Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 25 Jun 2018 18:08:27 -0400 Subject: [PATCH] Don't try to resolve tracked branch Fugitive does this for us. --- autoload/rhubarb.vim | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/autoload/rhubarb.vim b/autoload/rhubarb.vim index 163b381..6afb863 100644 --- a/autoload/rhubarb.vim +++ b/autoload/rhubarb.vim @@ -227,12 +227,7 @@ function! rhubarb#fugitive_url(opts, ...) abort endif let path = substitute(a:opts.path, '^/', '', '') if path =~# '^\.git/refs/heads/' - let branch = a:opts.repo.git_chomp('config','branch.'.path[16:-1].'.merge')[11:-1] - if branch ==# '' - return root . '/commits/' . path[16:-1] - else - return root . '/commits/' . branch - endif + return root . '/commits/' . path[16:-1] elseif path =~# '^\.git/refs/tags/' return root . '/releases/tag/' . path[15:-1] elseif path =~# '^\.git/refs/remotes/[^/]\+/.'