aboutsummaryrefslogtreecommitdiff
path: root/build-scripts/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'build-scripts/helpers')
-rw-r--r--build-scripts/helpers8
1 files changed, 7 insertions, 1 deletions
diff --git a/build-scripts/helpers b/build-scripts/helpers
index 2511051..df8264a 100644
--- a/build-scripts/helpers
+++ b/build-scripts/helpers
@@ -36,7 +36,13 @@ repo-sync-stubborn () {
repo-sync-from-mirror () {
setup-repo-vars
- repo init $REPO_QUIET -u "${MANIFEST_REPO}" -b "${MANIFEST_BRANCH}" -m "${MANIFEST_FILENAME}" $REPO_MIRROR -g $REPO_GROUPS
+
+ if [ -d "$REPO_SEED_DIR" ]; then
+ repo init $REPO_QUIET -u "${MANIFEST_REPO}" -b "${MANIFEST_BRANCH}" -m "${MANIFEST_FILENAME}" $REPO_MIRROR -g $REPO_GROUPS --reference=$REPO_SEED
+ else
+ repo init $REPO_QUIET -u "${MANIFEST_REPO}" -b "${MANIFEST_BRANCH}" -m "${MANIFEST_FILENAME}" $REPO_MIRROR -g $REPO_GROUPS --depth=1
+ fi
+
# Save input manifest as build artifact for reference
mkdir -p out
cp .repo/manifest.xml out/source-manifest.xml