From: Ian Jackson Date: Mon, 9 Jan 2017 01:42:43 +0000 (+0000) Subject: Provide `dgit print-dgit-repos-server-source-url'. X-Git-Tag: archive/debian/3.0~26 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=e8df5638fc9abd8c502872b2a6f535de9ecf602f Provide `dgit print-dgit-repos-server-source-url'. Re:#850521. Signed-off-by: Ian Jackson --- diff --git a/debian/changelog b/debian/changelog index 5d37f961..00b651e9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,6 +17,7 @@ dgit (3.0~) unstable; urgency=medium Minor new feature: * distro alias facility in config space. (Primarily for testing.) * Undocumented --config-lookup-explode= feature. (For testing.) + * Provide `dgit print-dgit-repos-server-source-url'. Re:#850521. dgit-badcommit-fixup: * Do not investigate symrefs. Closes:#850547. diff --git a/dgit b/dgit index 3b4313bc..d0cbd327 100755 --- a/dgit +++ b/dgit @@ -6162,13 +6162,22 @@ sub cmd_clone_dgit_repos_server { exec @cmd or fail "exec git clone: $!\n"; } +sub cmd_print_dgit_repos_server_source_url { + badusage "no arguments allowed to dgit print-dgit-repos-server-source-url" + if @ARGV; + $package = '_dgit-repos-server'; + local $access_forpush = 0; + my $url = access_giturl(); + print $url, "\n" or die $!; +} + sub cmd_setup_mergechangelogs { badusage "no arguments allowed to dgit setup-mergechangelogs" if @ARGV; setup_mergechangelogs(1); } sub cmd_setup_useremail { - badusage "no arguments allowed to dgit setup-mergechangelogs" if @ARGV; + badusage "no arguments allowed to dgit setup-useremail" if @ARGV; setup_useremail(1); } diff --git a/dgit.1 b/dgit.1 index d0c24add..56be0dd4 100644 --- a/dgit.1 +++ b/dgit.1 @@ -314,6 +314,11 @@ Prints version information and exits. .BI "dgit clone-dgit-repos-server" " destdir" Tries to fetch a copy of the source code for the dgit-repos-server, as actually being used on the dgit git server, as a git tree. +.TP +.BI "dgit print-dgit-repos-server-source-url" +Prints the url used by dgit clone-dgit-repos-server. +This is hopefully suitable for use as a git remote url. +It may not be useable in a browser. .SH OPTIONS .TP .BR --dry-run " | " -n