[devscripts] 01/03: debcheckout: Handle Launchpad Git URLs

James McCoy jamessan at debian.org
Wed Jun 17 04:26:56 UTC 2015


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

jamessan pushed a commit to branch master
in repository devscripts.

commit ca574448fcadfbedce2474c363cbcc72c9dfa47c
Author: Colin Watson <cjwatson at debian.org>
Date:   Sun Jun 14 22:35:28 2015 +0100

    debcheckout: Handle Launchpad Git URLs
    
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 scripts/debcheckout.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/debcheckout.pl b/scripts/debcheckout.pl
index 0cd20a3..1595d62 100755
--- a/scripts/debcheckout.pl
+++ b/scripts/debcheckout.pl
@@ -482,6 +482,7 @@ sub set_auth($$$$) {
 	    } else {
 		$url =~ s|^\w+://(git\.debian\.org)/(?:git/)?(.*)|git+ssh://$user$1/git/$2|;
 	    }
+	    $url =~ s[^\w+://(?:(git|code)\.)?(launchpad\.net/.*)][git+ssh://${user}git.$2];
 	}
 	# "hg ssh://" needs an extra slash so paths are not based in the user's $HOME
 	when ("hg") {

-- 
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