From 78a9643e4b73e2a70359d570430e917d9f3ce2ca Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 22 Jun 2019 19:19:57 +0300 Subject: Fix assertion failure on fetch from git:// repository location using --fetch-timeout option --- bpkg/fetch-git.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bpkg/fetch-git.cxx b/bpkg/fetch-git.cxx index 689a927..f0033fd 100644 --- a/bpkg/fetch-git.cxx +++ b/bpkg/fetch-git.cxx @@ -59,7 +59,7 @@ namespace bpkg case repository_protocol::git: { warn << "--fetch-timeout is not supported by the git protocol"; - break; + return strings (); } case repository_protocol::ssh: { @@ -74,7 +74,7 @@ namespace bpkg // can always specify the timeout in git or ssh configuration. // warn << "--fetch-timeout is not supported by the ssh protocol"; - break; + return strings (); } case repository_protocol::file: return strings (); // Local communications. } -- cgit v1.1