summaryrefslogtreecommitdiff
path: root/.gitlab/fix-submodules.py
blob: 2ff8e41974430351008322ded28950ce242dd199 (plain)
1
2
3
4
5
6
7
8
#!/usr/bin/python

import re

x = open('.gitmodules').read()
x = re.sub(r"url *= *\.\.", "url = https://gitlab.haskell.org/ghc", x)
open('.gitmodules', 'w').write(x)