chiark / gitweb /
dgit: repos_server_url: Set $access_forpush to 1
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 19 Jan 2017 20:03:29 +0000 (20:03 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 19 Jan 2017 20:03:29 +0000 (20:03 +0000)
In 468edf05661e "dgit: clone-dgit-repos-server: Set $access_forpush"
we set this to 0.

But this is wrong.  The dgit-repos-server is used for pushing, not for
readonly access.  The readonly url may be entirely wrong, and indeed
it is, for Debian.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index dafbb0b..cf27bb7 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -6315,7 +6315,7 @@ sub cmd_archive_api_query {
 
 sub repos_server_url () {
     $package = '_dgit-repos-server';
-    local $access_forpush = 0;
+    local $access_forpush = 1;
     local $isuite = 'DGIT-REPOS-SERVER';
     my $url = access_giturl();
 }