Closed bravecorvus closed 3 years ago
It is SpaceVim's dein.vim is too old problem. Please see the timestamp.
It is already fixed in dein.vim HEAD.
It should be reported to SpaceVim maintainer.
Check if git pull origin master works. If it does not work, delete the entire repository, clone from scratch, and use git pull origin main from that point forward for that specific repository.
It is very dangerous approach. I cannot use it.
Okay thanks.
So the way the world of open source git services are going, most projects will use
main
in place ofmaster
in the next few years.In the meantime, tools like
dein
that rely ongit pull origin master
will start to break for more and more projects:Take the following for example:
My guess is that this project used to use
master
, but switched tomain
in preparation for the new world order.I think
dein.vim
will need to remain compatible with both until git repos reach a state where all repos usemain
branches (which may take years, or never happen unless forced upon repo maintainers by service providers like Github).I propose that in the meantime,
dein.vim
should support a fall back method as follows:Check if
git pull origin master
works. If it does not work, delete the entire repository, clone from scratch, and usegit pull origin main
from that point forward for that specific repository.There might be better approaches to this, but the underlying problem of remote branch names going from
master
tomain
remains constant.あるいはShougoさんがもう何かの案を検討している場合には無視してください。よろしくお願いします。