From 61cae5413775cf0b3590336ad587d7bf501926f3 Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Mon, 24 Nov 2014 12:35:50 +0100 Subject: [PATCH] autogen.sh: git submodule sync 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 --- autogen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 7b7a7d140826e..f332cdd4e54f9 100755 --- a/autogen.sh +++ b/autogen.sh @@ -29,7 +29,7 @@ else 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 -- 2.39.5