]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
autogen.sh: git submodule sync 2992/head
authorLoic Dachary <ldachary@redhat.com>
Mon, 24 Nov 2014 11:35:50 +0000 (12:35 +0100)
committerLoic Dachary <ldachary@redhat.com>
Mon, 24 Nov 2014 11:35:50 +0000 (12:35 +0100)
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>
autogen.sh

index 7b7a7d140826ed2c72ba1a5555b31131f338358b..f332cdd4e54f90963fd0250a664af02a2b52337b 100755 (executable)
@@ -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