Commit 547952e2 authored by Ian Lynagh's avatar Ian Lynagh

Don't assume that the main repo is called "ghc" in darcs-all

Fixes working in branches where that isn't true.
parent 732f30c2
......@@ -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 =~ /^\//) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment