Build system: detect when user cloned from GitHub
Build system: detect when user cloned from GitHub

Cloning the ghc repository from GitHub doesn't work out of the box. It
requires installing some special url rewrites into ~/.gitconfig. The
build fails mysteriously if you forget. This patch tries to detect when
you cloned from GitHub, and warns you if you didn't set those url
rewrites.

This hopefully lowers to barrier to contribute to GHC by a tiny bit. At
least one /r/haskell user ran into this recently.

Test Plan:
cloned from github, ran ./boot, saw the message. Installed url
rewrites, and ran ./boot again, didn't see the message.

Reviewed by: austin

Differential Revision: https://phabricator.haskell.org/D1230

vTurbine/ghc,ml9951/ghc,ml9951/ghc,tjakway/ghcjvm,shlevy/ghc,tjakway/ghcjvm,vikraman/ghc,AlexanderPankiv/ghc,siddhanathan/ghc,mettekou/ghc,da-x/ghc,GaloisInc/halvm-ghc,mfine/ghc,ghc-android/ghc,elieux/ghc,siddhanathan/ghc,tjakway/ghcjvm,sdiehl/ghc,shlevy/ghc,oldmanmike/ghc,wxwxwwxxx/ghc,vTurbine/ghc,snoyberg/ghc,snoyberg/ghc,oldmanmike/ghc,mcschroeder/ghc,sgillespie/ghc,mfine/ghc,elieux/ghc,gridaphobe/ghc,mettekou/ghc,olsner/ghc,da-x/ghc,nkaretnikov/ghc,ezyang/ghc,vTurbine/ghc,mettekou/ghc,sgillespie/ghc,olsner/ghc,mettekou/ghc,sdiehl/ghc,siddhanathan/ghc,shlevy/ghc,ml9951/ghc,ml9951/ghc,vikraman/ghc,mfine/ghc,shlevy/ghc,nushio3/ghc,wxwxwwxxx/ghc,ml9951/ghc,GaloisInc/halvm-ghc,ghc-android/ghc,elieux/ghc,AlexanderPankiv/ghc,oldmanmike/ghc,nkaretnikov/ghc,nushio3/ghc,AlexanderPankiv/ghc,mcschroeder/ghc,AlexanderPankiv/ghc,nkaretnikov/ghc,ghc-android/ghc,ezyang/ghc,wxwxwwxxx/ghc,mcschroeder/ghc,nkaretnikov/ghc,ghc-android/ghc,gridaphobe/ghc,tjakway/ghcjvm,ezyang/ghc,shlevy/ghc,oldmanmike/ghc,GaloisInc/halvm-ghc,gridaphobe/ghc,vTurbine/ghc,ml9951/ghc,AlexanderPankiv/ghc,nkaretnikov/ghc,tjakway/ghcjvm,gridaphobe/ghc,snoyberg/ghc,snoyberg/ghc,sgillespie/ghc,mettekou/ghc,vTurbine/ghc,sgillespie/ghc,nushio3/ghc,olsner/ghc,elieux/ghc,siddhanathan/ghc,ezyang/ghc,olsner/ghc,shlevy/ghc,ghc-android/ghc,sgillespie/ghc,da-x/ghc,sgillespie/ghc,mfine/ghc,mcschroeder/ghc,tjakway/ghcjvm,siddhanathan/ghc,vikraman/ghc,tjakway/ghcjvm,mettekou/ghc,mcschroeder/ghc,vikraman/ghc,nushio3/ghc,ghc-android/ghc,oldmanmike/ghc,GaloisInc/halvm-ghc,shlevy/ghc,da-x/ghc,gridaphobe/ghc,oldmanmike/ghc,vikraman/ghc,snoyberg/ghc,mettekou/ghc,mfine/ghc,mcschroeder/ghc,sdiehl/ghc,ghc-android/ghc,da-x/ghc,ezyang/ghc,sdiehl/ghc,wxwxwwxxx/ghc,elieux/ghc,sdiehl/ghc,vTurbine/ghc,olsner/ghc,sgillespie/ghc,vTurbine/ghc,snoyberg/ghc,oldmanmike/ghc,elieux/ghc,nushio3/ghc,ezyang/ghc,sdiehl/ghc,AlexanderPankiv/ghc,gridaphobe/ghc,da-x/ghc,ml9951/ghc,wxwxwwxxx/ghc,olsner/ghc,ezyang/ghc,wxwxwwxxx/ghc,gridaphobe/ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,mfine/ghc,snoyberg/ghc,siddhanathan/ghc,nkaretnikov/ghc,nushio3/ghc,mfine/ghc,nushio3/ghc,vikraman/ghc,GaloisInc/halvm-ghc,mcschroeder/ghc,elieux/ghc,vikraman/ghc,ml9951/ghc,siddhanathan/ghc,olsner/ghc,da-x/ghc,AlexanderPankiv/ghc,sdiehl/ghc,wxwxwwxxx/ghc