armory3d / armory2d

2D Editor
zlib License
83 stars 24 forks source link

Can´t clone repo submodule #69

Closed StrandedAlien closed 2 years ago

StrandedAlien commented 2 years ago

git submodule foreach --recursive git pull origin master Entering 'Kha' From https://github.com/armory3d/Kha

How can i make it work?

MoritzBrueckner commented 2 years ago

Hi, this is probably due to the fact that when Armory's Kha repository is updated from Kode/Kha, it's completely re-forked and some patches are applied to it. This means that the history of the "old" submodule is different than the "new" submodule, so Git doesn't know how to handle the changes in the old submodule that might get overridden.

I guess this article might help you: https://salferrarello.com/git-warning-pulling-without-specifying-how-to-reconcile-divergent-branches-is-discouraged/. You probably want to do a rebase in this situation.

Alternatively, it can be easier to work with a GUI client for Git, which would probably ask you what you want to do in this situation.