summaryrefslogtreecommitdiff
path: root/.circleci/fetch-submodules.sh
blob: 7279d21fd481fba43ec97a2e6f0ae00cefedd28d (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

set -euo pipefail

# Use github.com/ghc for those submodule repositories we couldn't connect to.
git config remote.origin.url git://github.com/ghc/ghc.git
git config --global url."git://github.com/ghc/packages-".insteadOf git://github.com/ghc/packages/
git submodule init # Don't be quiet, we want to show these urls.
git submodule --quiet update --recursive # Now we can be quiet again.