aboutsummaryrefslogtreecommitdiff
path: root/bpkg/auth.cxx
diff options
context:
space:
mode:
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.
//