Fix order in repo init call 05/10405/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 26 Jul 2017 13:12:36 +0000 (15:12 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 26 Jul 2017 13:12:36 +0000 (15:12 +0200)
Change-Id: I97b9972189a33877aefcc14ba0c83dbd72e65425
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/include-agl-repo.sh

index 32dafe9..d741151 100644 (file)
@@ -19,13 +19,13 @@ cd repoclone
 export REPODIR=`pwd`
 
 if test x"" = x"${RELEASE_VERSION}" -a x"" = x"${RELEASE_BRANCH}" ; then
+    repo init --reference=/opt/AGL/preclone -q -b $TARGETBRANCH -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
+else
   if test x"AGL/meta-renesas-rcar-gen3" = x"${TARGETPROJECT}" ; then
     repo init --reference=/opt/AGL/preclone -q -b master -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
   else
-    repo init --reference=/opt/AGL/preclone -q -b $TARGETBRANCH -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
-  fi
-else
   repo init --reference=/opt/AGL/preclone -q -b $TARGETBRANCH -m ${RELEASE_BRANCH}_${RELEASE_VERSION}.xml -u https://gerrit.automotivelinux.org/gerrit/AGL/AGL-repo
+  fi
 fi