The following commit has been merged in the master branch:
commit 5229a747a0d0e40fc440c05dda076b9e9975b2b1
Author: Christoph Berg <[email protected]>
Date: Sun Feb 6 13:53:42 2011 +0100
fix parsing of URLs ending with '.git'
diff --git a/scripts/debcheckout.pl b/scripts/debcheckout.pl
index 8b10a10..3648706 100755
--- a/scripts/debcheckout.pl
+++ b/scripts/debcheckout.pl
@@ -981,7 +981,9 @@ sub main() {
# guess package from url
if ($repo_url =~ m!([a-z0-9.+-]+)/trunk/?!) { # svn
$pkg = $1;
- } elsif ($repo_url =~ /([a-z0-9.+-]+)(?:\.git)?$/) { # git, and
catch-all
+ } elsif ($repo_url =~ /([a-z0-9.+-]+)\.git$/) { # git
+ $pkg = $1;
+ } elsif ($repo_url =~ /([a-z0-9.+-]+)$/) { # catch-all
$pkg = $1;
}
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].