Merge pull request #2369 from crazyserver/MOBILE-3401
MOBILE-3401 travis: Remove unshallow of origin
This commit is contained in:
commit
81cb1e2bdf
@ -67,9 +67,9 @@ if [ "$TRAVIS_BRANCH" == 'integration' ] || [ "$TRAVIS_BRANCH" == 'master' ] ||
|
|||||||
print_title "Mirror repository"
|
print_title "Mirror repository"
|
||||||
git remote add mirror https://$GIT_TOKEN@github.com/$GIT_ORG_PRIVATE/moodleapp.git
|
git remote add mirror https://$GIT_TOKEN@github.com/$GIT_ORG_PRIVATE/moodleapp.git
|
||||||
git fetch -q --unshallow mirror
|
git fetch -q --unshallow mirror
|
||||||
check_success_exit "Unsuccessful fetch, stopping..."
|
check_success_exit "Unsuccessful fetch of mirror, stopping..."
|
||||||
git fetch -q --unshallow origin
|
git fetch -q origin --depth=100
|
||||||
check_success_exit "Unsuccessful fetch, stopping..."
|
check_success_exit "Unsuccessful fetch of origin, stopping..."
|
||||||
git push -f mirror HEAD:$TRAVIS_BRANCH
|
git push -f mirror HEAD:$TRAVIS_BRANCH
|
||||||
check_success_exit "Unsuccessful mirror, stopping..."
|
check_success_exit "Unsuccessful mirror, stopping..."
|
||||||
git push -f mirror --tags
|
git push -f mirror --tags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user