From 42ae47c3033a8c9ce70f1e6fb4c88ed70ac679fb Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 23 Dec 2017 19:05:22 +0300 Subject: Add repository type detection --- bpkg/rep-info.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bpkg/rep-info.cxx') diff --git a/bpkg/rep-info.cxx b/bpkg/rep-info.cxx index f6a8d2d..322ff6b 100644 --- a/bpkg/rep-info.cxx +++ b/bpkg/rep-info.cxx @@ -31,7 +31,11 @@ namespace bpkg fail << "repository location argument expected" << info << "run 'bpkg help rep-info' for more information"; - repository_location rl (parse_location (args.next ())); + repository_location rl ( + parse_location (args.next (), + o.type_specified () + ? optional (o.type ()) + : nullopt)); // Fetch everything we will need before printing anything. Ignore // unknown manifest entries unless we are dumping them. First fetch -- cgit v1.1