[devscripts] 01/01: debcheckout: Add auth mapping for https://github.com.

Christoph Berg myon at debian.org
Tue Jan 12 18:03:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

myon pushed a commit to branch master
in repository devscripts.

commit ce76b46622f153bb6dbcfd633bb4f301c30ad430
Author: Christoph Berg <myon at debian.org>
Date:   Tue Jan 12 19:02:57 2016 +0100

    debcheckout: Add auth mapping for https://github.com.
---
 debian/changelog       | 3 +++
 scripts/debcheckout.pl | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 027513f..beca259 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,9 @@ devscripts (2.16.1) UNRELEASED; urgency=medium
     + Recognize dash as a valid shell.
     + Check scripts which use “#!/path/to/env $interpreter”
 
+  [ Christoph Berg ]
+  * debcheckout: Add auth mapping for https://github.com.
+
  -- Antonio Terceiro <terceiro at debian.org>  Tue, 05 Jan 2016 13:01:05 -0200
 
 devscripts (2.15.10) unstable; urgency=low
diff --git a/scripts/debcheckout.pl b/scripts/debcheckout.pl
index 3477f8a..e9327bd 100755
--- a/scripts/debcheckout.pl
+++ b/scripts/debcheckout.pl
@@ -460,7 +460,7 @@ sub set_auth($$$$) {
     $url =~ s at svn://(?:scm\.alioth|anonscm)\.debian\.org at svn://svn.debian.org@;
 
     # other providers
-    $url =~ s!git://github\.com/!git\@github.com:!;
+    $url =~ s!(?:git|https?)://github\.com/!git\@github.com:!;
 
     given ($repo_type) {
 	when ("bzr") {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list