diff --git a/autogen.sh b/autogen.sh index ff5e46f0d..649c644a4 100755 --- a/autogen.sh +++ b/autogen.sh @@ -190,8 +190,7 @@ if test -e ".git"; then : else echo "Checking out submodule in \`subprojects/dlg':" - git submodule init - git submodule update + git submodule update --init fi copy_submodule_files diff --git a/builds/toplevel.mk b/builds/toplevel.mk index 8d5063ebb..ce7cc9c7f 100644 --- a/builds/toplevel.mk +++ b/builds/toplevel.mk @@ -170,8 +170,7 @@ endif # test check_platform check_out_submodule: $(info Checking out submodule in `subprojects/dlg') - git --git-dir=$(TOP_DIR) submodule init - git --git-dir=$(TOP_DIR) submodule update + git -C $(TOP_DIR) submodule update --init copy_submodule: $(info Copying files from `subprojects/dlg' to `src/dlg' and `include/dlg')