summaryrefslogtreecommitdiff
path: root/sync-all
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2013-08-28 17:56:15 +0200
committerHerbert Valerio Riedel <hvr@gnu.org>2013-08-28 18:02:40 +0200
commit1effad835bc58e2e87b83e74cf87636ee3220d15 (patch)
tree12a005d365a700334b2a5c8f335c45ed90f5b5db /sync-all
parent477bc9be26d9ac0c4cd674403c2a57fba9d1ee09 (diff)
downloadhaskell-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-xsync-all22
1 files changed, 22 insertions, 0 deletions
diff --git a/sync-all b/sync-all
index 977aed26b7..85a697af52 100755
--- a/sync-all
+++ b/sync-all
@@ -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;
}