aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2014-11-12 21:28:53 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2014-11-13 16:09:13 +0530
commit404fddf9e497aff0eb6508ef47a1b4861072b5fc (patch)
treeb641211b65577e8520eedd01c217b943b76466d6
parent8d0e2ae7747ad7fcbab35a4b9b3a52ad0bf71f45 (diff)
downloadlinaro-android-build-tools-404fddf9e497aff0eb6508ef47a1b4861072b5fc.tar.gz
Add support to specify branch name for local_manifests
Change-Id: Ib477f60826a0558ef1e394d8f84c152d9e17f5e7 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rw-r--r--build-scripts/helpers6
1 files changed, 5 insertions, 1 deletions
diff --git a/build-scripts/helpers b/build-scripts/helpers
index d421968..ec7f457 100644
--- a/build-scripts/helpers
+++ b/build-scripts/helpers
@@ -42,8 +42,12 @@ repo-sync-from-mirror () {
cp .repo/manifest.xml out/source-manifest.xml
if [ -n "$LOCAL_MANIFEST" ]; then
+ if [ ! -n "$LOCAL_MANIFEST_BRANCH" ]; then
+ LOCAL_MANIFEST_BRANCH="master"
+ fi
cd .repo/
- git clone $LOCAL_MANIFEST
+ rm -rf local_manifests
+ git clone $LOCAL_MANIFEST -b $LOCAL_MANIFEST_BRANCH local_manifests
cd -
fi