Sync submodules before update

When submodule URL is changed in .gitmodules,
update fails and this error can be easily overseen.

Change-Id: Iec55b35356db0b83cf86dea779e4379fff1f8d04
This commit is contained in:
Martin Magr
2013-12-03 13:59:55 +01:00
parent 96b0434ddf
commit 30cc94e3f3

View File

@@ -2,6 +2,7 @@
#
git reset --hard
git submodule sync
git submodule update --init
git status -s | grep "." && ( echo "Contains unknown files" ; exit 1 )