Update also git submodules after re-setting to commit version 03/10703/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Sat, 26 Aug 2017 23:07:39 +0000 (01:07 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Sat, 26 Aug 2017 23:07:39 +0000 (01:07 +0200)
Change-Id: I625c64859ff613f8bc5ea2574503273535e89bd0
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/include-apps-build-app.sh

index 0febb1a..cd74258 100644 (file)
@@ -63,6 +63,12 @@ if [[ ! x"yes" = x"$HANDLED" ]] && $(echo "$TARGETPROJECT" | grep -q "apps/"); t
           sleep 2
           # if not reset, we leave it to master
         fi
+
+        # update git submodules
+        if test -f .gitmodules ; then
+           git submodule init && git submodule update
+        fi
+
         git log -1 --pretty=oneline
 
         # Fixme: use aglbuild script