Coc.nvim: vim-plug PlugUpdate "refusing to merge unrelated histories" error

Created on 30 Mar 2020  Â·  4Comments  Â·  Source: neoclide/coc.nvim

Almost everytime I run :PlugUpdate (with vim-plug) I get a refusing to merge unrelated histories error message which requires me to run :PlugClean and :PlugInstall

Result from CocInfo

Before PlugClean+PlugInstall

Error: javascript bundle not found, run :call coc#util#install() to fix.

After PlugClean+PlugInstall

## versions

vim version: NVIM v0.4.3
node version: v11.15.0
coc.nvim version: 0.0.77-817efd5108
term: xterm-256color
platform: linux

## Output channel: prettier


## Output channel: git

Looking for git in: git
> git rev-parse --show-toplevel
resolved root: /usr/local/google/home/elentok/.dotfiles
resolved root: /usr/local/google/home/elentok/.dotfiles
> git symbolic-ref --short HEAD
> git diff --name-status
> git diff --staged --name-status
> git ls-files --others --exclude-standard

Describe the bug

Using the vim-plug package manager, when I run :PlugUpdate

Reproduce the bug

  • Created file mini.vim with (the issue is related to vim-plug, so I need to load it using vim-plug):

    set nocompatible
    filetype plugin indent on
    syntax on
    set hidden
    
    call plug#begin('~/.local/share/nvim-plugins')
    Plug 'neoclide/coc.nvim', { 'branch': 'release' }
    call plug#end()
    
  • Started neovim with command: nvim -u mini.vim

  • Ran :PlugUpdate and got this output:

    Updated. Elapsed time: 0.844394 sec.
    [x]
    
    - Finishing ... Done!
    x coc.nvim:
      fatal: refusing to merge unrelated histories
    
Can't reproduce

All 4 comments

It's problem of your vim-plug.

Hi @chemzqm ,

  • Are you saying it's a problem with my specific installation of vim-plug?
  • Is there another recommended plugin manager?
  • It's complaining that my local "release" branch has diverged from "origin/release", is it being force pushed?

Thanks,
David.

VIM-PLUG is recommended. I use it and call :PlugUpdate daily and never hit this.

@elentok We don't know what's wrong with your vim-plug or plugin state, please don't ask this kind of question in issue list.
Try

  • Redownload latest vim-plug from github.
  • Remove coc.nvim folder.
  • Add Plug 'neoclide/coc.nvim', { 'branch': 'release' } and run :PlugInstall again
Was this page helpful?
0 / 5 - 0 ratings

Related issues

cvlmtg picture cvlmtg  Â·  3Comments

MaskRay picture MaskRay  Â·  3Comments

czepluch picture czepluch  Â·  3Comments

npearson72 picture npearson72  Â·  3Comments

iago-lito picture iago-lito  Â·  3Comments