Ignore Fugitive browse requests without commits

This should never happen.
This commit is contained in:
Tim Pope
2018-06-25 18:21:57 -04:00
parent 658f51d366
commit 3f10dff8cf

View File

@@ -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