From: Ian Lynagh Date: Fri, 29 Aug 2008 13:00:19 +0000 (+0000) Subject: push-all needs to skip http:// repos, as we don't know how to push to them X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=6cf43d8eccfcf8bfad7ce1c35a4f174a545c3c2a push-all needs to skip repos, as we don't know how to push to them Alternatives would be to have a GHC haddock repo (which I believe David is keen to avoid), or to put the SSH URL in the packages file too (which would probably mean moving to a more structured file format). --- diff --git a/push-all b/push-all index 8e9f9f3..ef4dbc8 100644 --- a/push-all +++ b/push-all @@ -45,7 +45,7 @@ sub pushall { @repos = ; close IN; - foreach (@repos) { + REPO: foreach (@repos) { chomp; if (/^([^# ]+) +(?:([^ ]+) +)?([^ ]+) +([^ ]+)$/) { $localpath = $1; @@ -56,7 +56,13 @@ sub pushall { $path = "$reporoot/$localpath"; } else { - $path = "$reporoot/$remotepath"; + if ($remotepath =~ /^http:/) { + message "Ignoring $localpath; remote is http URL"; + next REPO; + } + else { + $path = "$reporoot/$remotepath"; + } } if (-d "$localpath/_darcs") {