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
+1 -1
View File
@@ -238,7 +238,7 @@ function! rhubarb#fugitive_url(opts, ...) abort
return root return root
endif endif
if a:opts.commit =~# '^\d\=$' if a:opts.commit =~# '^\d\=$'
let commit = a:opts.repo.rev_parse('HEAD') return ''
else else
let commit = a:opts.commit let commit = a:opts.commit
endif endif