chiark / gitweb /
TLS keys: Cope if archive-query-tls-key unset
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 28 Jun 2015 15:00:07 +0000 (16:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 28 Jun 2015 15:00:07 +0000 (16:00 +0100)
dgit

diff --git a/dgit b/dgit
index 1aea272..4986dd0 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -706,7 +706,7 @@ sub archive_api_query_cmd ($) {
     my $url = access_cfg('archive-query-url');
     if ($url =~ m#^https://([-.0-9a-z]+)/#) {
        my $host = $1;
-       my $keys = access_cfg('archive-query-tls-key','RETURN-UNDEF');
+       my $keys = access_cfg('archive-query-tls-key','RETURN-UNDEF') //'';
        foreach my $key (split /\:/, $keys) {
            $key =~ s/\%HOST\%/$host/g;
            if (!stat $key) {