MOBILE-3401 travis: Remove unshallow of origin

main
Pau Ferrer Ocaña 2020-05-08 08:47:11 +02:00
parent 648c00e5be
commit 661f0b7877
1 changed files with 3 additions and 3 deletions

View File

@ -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