aboutsummaryrefslogtreecommitdiff
path: root/bpkg/auth.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-02-12 17:30:16 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-02-12 17:34:55 +0300
commitb7763416f8a1e4940a10336d3a8b9fbbb879f414 (patch)
tree31f1bc7427181aa81984a639d998ca4e99058199 /bpkg/auth.cxx
parentecb1efeebaa5597bee4cfdaab7bff4007b73127d (diff)
Clone and fetch git repositories
Diffstat (limited to 'bpkg/auth.cxx')
-rw-r--r--bpkg/auth.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/bpkg/auth.cxx b/bpkg/auth.cxx
index b60a8ee..06555e2 100644
--- a/bpkg/auth.cxx
+++ b/bpkg/auth.cxx
@@ -68,7 +68,8 @@ namespace bpkg
// use the location rather than the name prefix.
//
if (rl.remote ())
- return repository_location (p.posix_string (), rl).canonical_name ();
+ return repository_location (
+ repository_url (p.posix_string ()), rl).canonical_name ();
else
return (path_cast<dir_path> (rl.path ()) / p).normalize ().string ();
}
@@ -555,11 +556,7 @@ namespace bpkg
//
if (pem)
{
- dir_path d (conf / certs_dir);
- if (!dir_exists (d))
- mk (d);
-
- path f (d / path (fp + ".pem"));
+ path f (conf / certs_dir / path (fp + ".pem"));
try
{
@@ -576,8 +573,6 @@ namespace bpkg
return cert;
}
- static const dir_path current_dir (".");
-
shared_ptr<const certificate>
authenticate_certificate (const common_options& co,
const dir_path* conf,