From 3f10dff8cf50010b430b07da0bf5105f6ab16dbf Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 25 Jun 2018 18:21:57 -0400 Subject: [PATCH] Ignore Fugitive browse requests without commits This should never happen. --- autoload/rhubarb.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/rhubarb.vim b/autoload/rhubarb.vim index 6afb863..3f074be 100644 --- a/autoload/rhubarb.vim +++ b/autoload/rhubarb.vim @@ -238,7 +238,7 @@ function! rhubarb#fugitive_url(opts, ...) abort return root endif if a:opts.commit =~# '^\d\=$' - let commit = a:opts.repo.rev_parse('HEAD') + return '' else let commit = a:opts.commit endif