chiark / gitweb /
curl invocation: archive-api-query subcommand: pass -f to curl
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 19 Oct 2016 21:44:28 +0000 (22:44 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 Oct 2016 12:31:30 +0000 (13:31 +0100)
This makes it fail properly when it should.

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

diff --git a/dgit b/dgit
index 2dd45befc7b75adca2ba9996aaf5ec9c9cb554fe..19a0835a09096809f788bc96d346e6d96805d391 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -5010,6 +5010,7 @@ sub cmd_archive_api_query {
     badusage "need only 1 subpath argument" unless @ARGV==1;
     my ($subpath) = @ARGV;
     my @cmd = archive_api_query_cmd($subpath);
+    push @cmd, qw(-f);
     debugcmd ">",@cmd;
     exec @cmd or fail "exec curl: $!\n";
 }