summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-10-19 22:44:28 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-10-23 13:31:30 +0100
commit17ed38cfca87366fc0e505c6dfadb5ce227a57a4 (patch)
tree6cc64c6c72a08fc6b222fd491e59525195aaac43
parentbd3c1a7b8a2d5c8d35bea0655ec95b313cda9df2 (diff)
curl invocation: archive-api-query subcommand: pass -f to curl
This makes it fail properly when it should. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-xdgit1
1 files changed, 1 insertions, 0 deletions
diff --git a/dgit b/dgit
index 2dd45be..19a0835 100755
--- 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";
}