aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xandroid-lcr/generic/builders.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/android-lcr/generic/builders.sh b/android-lcr/generic/builders.sh
index 5c7117bbf..959211d88 100755
--- a/android-lcr/generic/builders.sh
+++ b/android-lcr/generic/builders.sh
@@ -2,6 +2,8 @@
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
rm -rf out/
+# Prevent repo aborting sync because of uncommitted changes.
+repo forall -c 'git reset --hard' >/dev/null
repo init -u ${ANDROID_MANIFEST_URL} -b ${MANIFEST_BRANCH}
repo sync -j"$(nproc)" -c