From 06726aa7c0710100f0aaf81dfd3ac900b8ece3ee Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Wed, 9 Jan 2008 16:27:32 +0000 Subject: Windows fix --- darcs-all | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'darcs-all') diff --git a/darcs-all b/darcs-all index 046e589f5d..1cc2b24338 100644 --- a/darcs-all +++ b/darcs-all @@ -11,8 +11,10 @@ chomp $defaultrepo; my $defaultrepo_base; my $defaultrepo_lib; -if ($defaultrepo =~ /:/) { +if ($defaultrepo =~ /^...*:/) { # HTTP or SSH + # Above regex says "at least two chars before the :", to avoid + # catching Win32 drives ("C:\"). $defaultrepo_base = $defaultrepo; $defaultrepo_base =~ s#/[^/]+/?$##; $defaultrepo_lib = "$defaultrepo_base/packages"; -- cgit v1.2.1