From a5cc1656274d1978a85dd0abafc46c21b7f851d0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 13 Oct 2015 17:33:54 +0200 Subject: Adapt to remote repository location relative path --- bpkg/fetch.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bpkg/fetch.cxx') diff --git a/bpkg/fetch.cxx b/bpkg/fetch.cxx index ebff730..2ccda2c 100644 --- a/bpkg/fetch.cxx +++ b/bpkg/fetch.cxx @@ -467,10 +467,7 @@ namespace bpkg static string to_url (const string& host, uint16_t port, const path& file) { - //@@ Absolute path in URL: how is this going to work on Windows? - // Change to relative: watch for empty path. - // - assert (file.absolute ()); + assert (file.relative ()); string url ("http://"); url += host; @@ -478,7 +475,7 @@ namespace bpkg if (port != 0) url += ":" + to_string (port); - url += file.posix_string (); + url += "/" + file.posix_string (); return url; } -- cgit v1.1