chiark / gitweb /
dgit: clone-dgit-repos-server: Set $access_forpush
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 Jan 2017 01:37:46 +0000 (01:37 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 9 Jan 2017 13:08:32 +0000 (13:08 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit

index cca9feb..5d37f96 100644 (file)
@@ -11,6 +11,8 @@ dgit (3.0~) unstable; urgency=medium
     suite and distro more reliably and consistently.
   * Parsing of extended Dgit fields by import-dsc was broken;
     and is now fixed even for more-extended ones.
+  * dgit clone-dgit-repos-server uses readonly access.
+    Closes:#850521.
 
   Minor new feature:
   * distro alias facility in config space.  (Primarily for testing.)
diff --git a/dgit b/dgit
index 8c9765e..3b4313b 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -6156,6 +6156,7 @@ sub cmd_clone_dgit_repos_server {
     badusage "need destination argument" unless @ARGV==1;
     my ($destdir) = @ARGV;
     $package = '_dgit-repos-server';
+    local $access_forpush = 0;
     my @cmd = (@git, qw(clone), access_giturl(), $destdir);
     debugcmd ">",@cmd;
     exec @cmd or fail "exec git clone: $!\n";