diff options
author | Herbert Valerio Riedel <hvr@gnu.org> | 2013-08-28 17:56:15 +0200 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2013-08-28 18:02:40 +0200 |
commit | 1effad835bc58e2e87b83e74cf87636ee3220d15 (patch) | |
tree | 12a005d365a700334b2a5c8f335c45ed90f5b5db /sync-all | |
parent | 477bc9be26d9ac0c4cd674403c2a57fba9d1ee09 (diff) | |
download | haskell-1effad835bc58e2e87b83e74cf87636ee3220d15.tar.gz |
Add check for obsolete `darcs.haskell.org` repo urls
If the check detects an obsolete URL, show a warning and tell the user how
to invoke `sync-all` in order to update the local Git repo to point to the new
repository URLs.
This is related to #8121
Diffstat (limited to 'sync-all')
-rwxr-xr-x | sync-all | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -1008,6 +1008,28 @@ Please remove it (e.g. "rm -r libraries/time"), and then run EOF } + message "== Checking for obsolete Git repo URL"; + my $repo_url = &readgit(".", 'config', '--get', 'remote.origin.url'); + if ($repo_url =~ /^http:\/\/darcs.haskell.org/) { + print <<EOF; +============================ +ATTENTION! + +You seem to be using obsolete Git repository URLs. + +Please run + + ./sync-all -r git://git.haskell.org remote set-url + +or (in case port 9418/tcp is filtered by your firewall) + + ./sync-all -r http://git.haskell.org remote set-url + +to update your local checkout to use the new Git URLs. +============================ +EOF + } + $? = $ec; } |