Update to latest Version of V2 with submodules

Hello Everyone,

since kirby v3, the submodule linkes for V2 are broken for me.
How can i link them to the latest (V2) repository for further upgrades (Kirby + Panel V2)?

This guide seems outdated for V2:

Best regards

You can update the submodule URLs to github.com/getkirby-v2.

1 Like

@pedroborges Thank you!

For everyone else who needs to re-add the submodules:

To remove a submodule you need to:

Delete the relevant section from the .gitmodules file.
Stage the .gitmodules changes git add .gitmodules
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule (no trailing slash).
Run rm -rf .git/modules/path_to_submodule (no trailing slash).
Commit git commit -m "Removed submodule "
Delete the now untracked submodule files rm -rf path_to_submodule

Credit: https://gist.github.com/myusuf3/7f645819ded92bda6677

Then add the submodules again:

git submodule add https://github.com/getkirby-v2/kirby
git submodule add https://github.com/getkirby-v2/panel

Update submodules:

git submodule foreach --recursive git checkout master
git submodule foreach --recursive git pull
1 Like