mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 12:14:26 +08:00
Ignore Fugitive browse requests without commits
This should never happen.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user