diff options
author | Vishal Bhoj <vishal.bhoj@linaro.org> | 2014-11-12 21:28:53 +0530 |
---|---|---|
committer | Vishal Bhoj <vishal.bhoj@linaro.org> | 2014-11-12 21:49:54 +0530 |
commit | e89260ef48e8bf420d773a4016928ada4b9942db (patch) | |
tree | 51a048453840578409046210bab3e2266c3cf66c | |
parent | 5e62f3105f5fe86f1fee84c8c89cff03921abf26 (diff) |
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/helpers | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/build-scripts/helpers b/build-scripts/helpers index fb3e29c..55aad30 100644 --- a/build-scripts/helpers +++ b/build-scripts/helpers @@ -43,8 +43,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 |