Skip to content

Commit

Permalink
Merge pull request #3900 from dachary/wip-recursive-submodules
Browse files Browse the repository at this point in the history
autogen.sh: do not submodule --force if git does not support it
  • Loading branch information
ldachary committed Mar 7, 2015
2 parents 39adebb + 9748d45 commit a19f92c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autogen.sh
Expand Up @@ -29,7 +29,8 @@ else
fi

if test -d ".git" ; then
if ! git submodule sync || ! git submodule update --force --init --recursive; then
force=$(if git submodule usage 2>&1 | grep --quiet 'update.*--force'; then echo --force ; fi)
if ! git submodule sync || ! git submodule update $force --init --recursive; then
echo "Error: could not initialize submodule projects"
echo " Network connectivity might be required."
exit 1
Expand Down

0 comments on commit a19f92c

Please sign in to comment.