summaryrefslogtreecommitdiff
path: root/darcs-all
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-06-20 23:40:07 +0000
committerIan Lynagh <igloo@earth.li>2007-06-20 23:40:07 +0000
commit547952e269c1e1f4021046f1bf97da59be313cad (patch)
treedd9000ead88195f59a549cbaf1714f2b84c6aa4f /darcs-all
parent732f30c21c984cf2a03afca3df91fa539c354559 (diff)
downloadhaskell-547952e269c1e1f4021046f1bf97da59be313cad.tar.gz
Don't assume that the main repo is called "ghc" in darcs-all
Fixes working in branches where that isn't true.
Diffstat (limited to 'darcs-all')
-rw-r--r--darcs-all2
1 files changed, 1 insertions, 1 deletions
diff --git a/darcs-all b/darcs-all
index 4e67683355..72e1ed3354 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 =~ /^\//) {