mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2026-08-11 02:12:46 +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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user