The following commit has been merged in the master branch:
commit 4143f8b15770581595d090277de274c167fd2691
Author: James Vega <[email protected]>
Date: Sun Jan 17 16:50:48 2010 -0500
debcheckout: Fix handling of authenticated clones of Alioth git repos.
Alioth requires that the first directory in the path of a git+ssh:// clone
is
/git/. Whether the git:// URL contains that directory is inconsistent, so
we
needed to update the replacement to handle both scenarios.
diff --git a/debian/changelog b/debian/changelog
index 419aae4..cb1f880 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -24,6 +24,8 @@ devscripts (2.10.62) UNRELEASED; urgency=low
* debian/control: Update Vcs-* to point to the new Git repository.
* dcmd: Allow capital letters for the section and priority fields. (Closes:
#565159)
+ * debcheckout: Ensure "/git/" is at the start of the URL's path when
+ performing an authenticated clone of an Alioth git repo.
[ Patrick Schoenfeld ]
* nmudiff: Fix "[nmudiff] please include --tagpending option" by applying the
diff --git a/scripts/debcheckout.pl b/scripts/debcheckout.pl
index 57c91ba..9f170c5 100755
--- a/scripts/debcheckout.pl
+++ b/scripts/debcheckout.pl
@@ -408,7 +408,7 @@ sub set_auth($$$$) {
$url =~
s|^\w+://(git\.debian\.org)/git/users/.*?/(.*)|git+ssh://$user$1/~/public_git/$2|;
$url =~
s|^\w+://(git\.debian\.org)/~.*?/(.*)|git+ssh://$user$1/~/public_git/$2|;
} else {
- $url =~ s|^\w+://(git\.debian\.org/.*)|git+ssh://$user$1|;
+ $url =~
s|^\w+://(git\.debian\.org)/(?:git/)?(.*)|git+ssh://$user$1/git/$2|;
}
}
case "hg" { $url =~ s|^\w+://(hg\.debian\.org/.*)|ssh://$user$1|; }
--
Git repository for devscripts
--
To unsubscribe, send mail to [email protected].