diff options
Diffstat (limited to 'bpkg/rep-create.cxx')
-rw-r--r-- | bpkg/rep-create.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bpkg/rep-create.cxx b/bpkg/rep-create.cxx index ba2eb73..2de1de1 100644 --- a/bpkg/rep-create.cxx +++ b/bpkg/rep-create.cxx @@ -227,7 +227,8 @@ namespace bpkg ofs.close (); } - const optional<string>& cert (rms.back ().certificate); + const optional<string>& cert (find_base_repository (rms).certificate); + if (cert) { const string& key (o.key ()); |