Change-Id: I691f62261f9226fdffbbddbdee26c36273f38503
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
git fetch origin ${GERRIT_REFSPEC} && git checkout FETCH_HEAD
# If the project is autorelease then we need to init and update submodules
git fetch origin ${GERRIT_REFSPEC} && git checkout FETCH_HEAD
# If the project is autorelease then we need to init and update submodules
- if [ "$GERRIT_PROJECT" != "releng/autorelease" ]; then
+ if [ "$GERRIT_PROJECT" == "releng/autorelease" ]; then
git submodule update --init
fi
git submodule update --init
fi