aboutsummaryrefslogtreecommitdiff
path: root/bpkg/auth.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-01-15 23:17:30 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-01-15 23:17:30 +0300
commit2862f91f6016bd07fd9adc0a0f518258a32aa274 (patch)
tree79c9e69f8e5e60955ac0c3f1962d88307d0a6220 /bpkg/auth.cxx
parent42ae47c3033a8c9ce70f1e6fb4c88ed70ac679fb (diff)
Adapt to adding type prefix for repository canonical name
Diffstat (limited to 'bpkg/auth.cxx')
-rw-r--r--bpkg/auth.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/bpkg/auth.cxx b/bpkg/auth.cxx
index da4d0b5..82e17ec 100644
--- a/bpkg/auth.cxx
+++ b/bpkg/auth.cxx
@@ -699,7 +699,10 @@ namespace bpkg
};
pair<string, string> c (split (cert.name));
- pair<string, string> r (split (rl.canonical_name ()));
+
+ // Strip 'bpkg:' prefix.
+ //
+ pair<string, string> r (split (rl.canonical_name ().substr (5)));
// Match the repository canonical name leading part.
//