It is not enough to git submodule update on a existing git clone: if the
URL of the repository has been changed, the
git submodule sync
command must be called to synchronizes submodules' remote URL
configuration setting to the value specified in .gitmodules.
http://tracker.ceph.com/issues/10173 Fixes: #10173
Signed-off-by: Loic Dachary <ldachary@redhat.com>
fi
if test -d ".git" ; then
- if ! git submodule update --init; then
+ if ! git submodule sync || ! git submodule update --init; then
echo "Error: could not initialize submodule projects"
echo " Network connectivity might be required."
exit 1