@@ -533,13 +533,13 @@ local function check_sysinfo()
533533local version_for_report = nvim_version
534534if commit_hash then
535535version_for_report = nvim_version :gsub (' %+g' .. commit_hash ,' neovim/neovim@' .. commit_hash )
536- local has_git = vim .fn .executable (' git' )== 0
536+ local has_git = vim .fn .executable (' git' )== 1
537537local has_curl = vim .fn .executable (' curl' )== 1
538- local cmd = has_git and {' git' ,' ls-remote' ,' https://github.com/neovim/neovim' ,' nightly ' }
538+ local cmd = has_git and {' git' ,' ls-remote' ,' https://github.com/neovim/neovim' ,' HEAD ' }
539539or has_curl and {
540540' curl' ,
541541' -s' ,
542- ' https://api.github.com/repos/neovim/neovim/commits/nightly ' ,
542+ ' https://api.github.com/repos/neovim/neovim/commits/master ' ,
543543' -H' ,
544544' Accept: application/vnd.github.sha' ,
545545 }
@@ -633,6 +633,7 @@ local function check_sysinfo()
633633' %#WarningMsg#%@v:lua.nvim_health_bugreport_open@Click to Create Bug Report on GitHub%X%*'
634634vim .api .nvim_create_autocmd (' BufDelete' , {
635635buffer = buf ,
636+ once = true ,
636637command = ' lua _G.nvim_health_bugreport_open = nil' ,
637638 })
638639end )