From: Ian Lynagh Date: Wed, 20 Jun 2007 23:40:07 +0000 (+0000) Subject: Don't assume that the main repo is called "ghc" in darcs-all X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=547952e269c1e1f4021046f1bf97da59be313cad Don't assume that the main repo is called "ghc" in darcs-all Fixes working in branches where that isn't true. --- diff --git a/darcs-all b/darcs-all index 4e67683..72e1ed3 100644 --- a/darcs-all +++ b/darcs-all @@ -14,7 +14,7 @@ my $defaultrepo_lib; if ($defaultrepo =~ /:/) { # HTTP or SSH $defaultrepo_base = $defaultrepo; - $defaultrepo_base =~ s#/ghc$##; + $defaultrepo_base =~ s#/[^/]+/?$##; $defaultrepo_lib = "$defaultrepo_base/packages"; } elsif ($defaultrepo =~ /^\//) {