aboutsummaryrefslogtreecommitdiff
path: root/build-scripts/build-android
diff options
context:
space:
mode:
Diffstat (limited to 'build-scripts/build-android')
-rw-r--r--build-scripts/build-android14
1 files changed, 7 insertions, 7 deletions
diff --git a/build-scripts/build-android b/build-scripts/build-android
index ca3d245..894717f 100644
--- a/build-scripts/build-android
+++ b/build-scripts/build-android
@@ -72,17 +72,17 @@ else
fi
if [ -n "$GERRIT_PROJECT" ] && [ $GERRIT_PROJECT != "android-build-configs" ] && [ $GERRIT_EVENT_TYPE == "comment-added" ]; then
- if [ "$GERRIT_PROJECT" == "platform/manifest" ]; then
+ if [ ${GERRIT_HOST} == "dev-private-review.linaro.org" ]; then
+ GERRIT_URL="ssh://git@${GERRIT_HOST}/${GERRIT_PROJECT}"
+ else
+ GERRIT_URL="http://${GERRIT_HOST}/${GERRIT_PROJECT}"
+ fi
+ if [ "$GERRIT_PROJECT" == "platform/manifest" ] || [ "$GERRIT_PROJECT" == "linaro-art/platform/manifest" ]; then
cd .repo/local_manifests;
- git pull http://android-review.linaro.org/platform/manifest $GERRIT_REFSPEC
+ git pull ${GERRIT_URL} $GERRIT_REFSPEC
cd -
else
cd `grep -rni $GERRIT_PROJECT\" .repo/local_manifests | grep -Po 'path="\K[^"]*'`
- if [ ${GERRIT_HOST} == "dev-private-review.linaro.org" ]; then
- GERRIT_URL="ssh://git@${GERRIT_HOST}/${GERRIT_PROJECT}"
- else
- GERRIT_URL="http://${GERRIT_HOST}/${GERRIT_PROJECT}"
- fi
if git pull ${GERRIT_URL} ${GERRIT_REFSPEC} | grep -q "Automatic merge failed"; then
git reset --hard
echo "Error: *** Error patch merge failed"