From 1e99824df80b3e8f38e8144fb897b95a53366802 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 16 Jun 2016 11:22:01 +0000 Subject: more robust checkout to switch from submodules to subrepos --- leap-platform-test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/leap-platform-test b/leap-platform-test index 3f14786..2dd7f9e 100755 --- a/leap-platform-test +++ b/leap-platform-test @@ -501,8 +501,8 @@ update_platform () { git fetch git checkout master git branch -D $PLATFORM_BRANCH - git checkout -b $PLATFORM_BRANCH origin/$PLATFORM_BRANCH - + git checkout -f -b $PLATFORM_BRANCH origin/$PLATFORM_BRANCH + git clean -fd git submodule sync git submodule update --init } -- cgit v1.2.3