Git-Submodul-Update vom Post-Receive-Hook

Ich versuche mein Submodul in automatisch zu aktualisierenvar/www/php/vendor/projectX bei jedem Commit zumvar/www Super-Projekt. Ich habe diese Zeilen in die.git/hooks/post-receive Datei :

#!/bin/sh
echo "Updating submodules recursively"
pwd
git submodule update --init --recursive

Aber ich bekomme das, wenn ich mich zum Superprojekt begebe:

Counting objects: 8, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 346 bytes | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)

remote: Updating submodules recursively
remote: /var/www/.git
remote: No submodule mapping found in .gitmodules for path 'php/vendor/projectX'
To [email protected]:.
3dc2404..bc46dd6  dev -> dev

Der entsprechende Abschnitt ist jedoch in der .gitmodules-Datei enthalten, ebenso wie die Dateien in .git / modules. Laufengit submodule update --init --recursive manuell funktioniert gut. Nur wenn man vom Haken läuft, funktioniert es nicht. Danke

Antworten auf die Frage(1)

Ihre Antwort auf die Frage