Update your Knp* file deps to solve /info/refs not found
Published on
Dec 2, 2011
Dec 3, 2011 − If you use KNP bundles (KnpMenuBundle or KnpPaginatorBundle for example), please update your deps file or .gitmodules file to reflect the username case change from knplabs to KNP Labs.
If you use KNP bundles (KnpMenuBundle or KnpPaginatorBundle for example), please update your deps
file or .gitmodules
file to reflect the username case change from knplabs to KNP Labs.
Example for KnpMenuBundle:
[bundles/Knp/Bundle/MenuBundle]
target=bundles/Knp/Bundle/MenuBundle
git=…github.com/KnpLabs/KnpMenuBundle.git
To:
[bundles/Knp/Bundle/MenuBundle]
target=bundles/Knp/Bundle/MenuBundle
git=…github.com/KnpLabs/KnpMenuBundle.git
(where …
is the protocol you're using).
Otherwise you’ll keep having errors like:
⚡ php bin/vendors install
…
fatal: …github.com/KnpLabs/KnpMenu.git/info/refs not found
when updating your deps.
Update script for deps
To do this automatically on MacOs:
sed -i '' "s/KnpLabs/KNP Labs/" deps
rm -rf vendor/knp*
rm -rf vendor/Knp*
rm -rf vendor/bundles/Knp*
php bin/vendors install
To do this automatically on Linux:
sed -i "s/KnpLabs/KNP Labs/" deps
rm -rf vendor/knp*
rm -rf vendor/Knp*
rm -rf vendor/bundles/Knp*
php bin/vendors install
Update script for forks/clones
If you have forked or cloned one of our repos
# MacOS
sed -i '' "s/KnpLabs/KNP Labs/" .git/config
# Linux
sed -i "s/KnpLabs/KNP Labs/" .git/config
Sorry about that, guys, we were overzealous on this one − 'cause yeah, git repo urls are case sensitive unlike github urls.
Thanks for your understanding!
Comments