Skip to content

Commit

Permalink
autogen.sh: do not submodule --force if git does not support it
Browse files Browse the repository at this point in the history
Signed-off-by: Loic Dachary <ldachary@redhat.com>
  • Loading branch information
ldachary committed Mar 7, 2015
1 parent 39adebb commit 9748d45
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 9748d45

Please sign in to comment.