From 19a6eb42669c2d380d0bb045fe1240b1589e9ad2 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 8 Feb 2019 20:34:57 +0300 Subject: Fix github-based repository fetching for URLs missing .git extension --- bpkg/fetch.hxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bpkg/fetch.hxx') diff --git a/bpkg/fetch.hxx b/bpkg/fetch.hxx index a8acbb7..2adbfe3 100644 --- a/bpkg/fetch.hxx +++ b/bpkg/fetch.hxx @@ -107,12 +107,14 @@ namespace bpkg // Start the process of fetching the specified URL. If out is empty, then // fetch to stdout. In this case also don't show any progress unless we are - // running verbose. + // running verbose. If user_agent is empty, then send the default (fetch + // program specific) User-Agent header value. // butl::process start_fetch (const common_options& o, const string& url, - const path& out = path ()); + const path& out = {}, + const string& user_agent = {}); } #endif // BPKG_FETCH_HXX -- cgit v1.1