From 661f0b7877a27d1679de660c08718e6f70774b42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Fri, 8 May 2020 08:47:11 +0200 Subject: [PATCH] MOBILE-3401 travis: Remove unshallow of origin --- scripts/mirror.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/mirror.sh b/scripts/mirror.sh index 1605b4688..42a2ad88b 100755 --- a/scripts/mirror.sh +++ b/scripts/mirror.sh @@ -67,9 +67,9 @@ if [ "$TRAVIS_BRANCH" == 'integration' ] || [ "$TRAVIS_BRANCH" == 'master' ] || print_title "Mirror repository" git remote add mirror https://$GIT_TOKEN@github.com/$GIT_ORG_PRIVATE/moodleapp.git git fetch -q --unshallow mirror - check_success_exit "Unsuccessful fetch, stopping..." - git fetch -q --unshallow origin - check_success_exit "Unsuccessful fetch, stopping..." + check_success_exit "Unsuccessful fetch of mirror, stopping..." + git fetch -q origin --depth=100 + check_success_exit "Unsuccessful fetch of origin, stopping..." git push -f mirror HEAD:$TRAVIS_BRANCH check_success_exit "Unsuccessful mirror, stopping..." git push -f mirror --tags