aboutsummaryrefslogtreecommitdiff
path: root/bpkg/rep-info.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2021-09-04 12:38:40 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2021-09-04 20:35:03 +0300
commitad8d50be4016e68a4ab8d765bd9b45a9fdae1a6d (patch)
tree2fd90cf0434b2c81f69067352aa2c6fcf5af04ec /bpkg/rep-info.cxx
parent7bb44980ced46506c10bad333f526b7bc62ea1db (diff)
Simplify authenticate_*() and rep_fetch() functions semantics
Diffstat (limited to 'bpkg/rep-info.cxx')
-rw-r--r--bpkg/rep-info.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/bpkg/rep-info.cxx b/bpkg/rep-info.cxx
index 4e3315b..0000557 100644
--- a/bpkg/rep-info.cxx
+++ b/bpkg/rep-info.cxx
@@ -62,6 +62,8 @@ namespace bpkg
if (conf != nullptr && conf->empty ())
conf = exists (bpkg_dir) ? &current_dir : nullptr;
+ assert (conf == nullptr || !conf->empty ());
+
init_tmp (conf != nullptr ? *conf : empty_dir_path);
rep_fetch_data rfd (