aboutsummaryrefslogtreecommitdiff
path: root/bpkg
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-06-22 19:19:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-06-22 19:19:57 +0300
commit78a9643e4b73e2a70359d570430e917d9f3ce2ca (patch)
tree0716cf71036c4431ee6b43e019b355c160994416 /bpkg
parent1ba695892061a3955901b00085b87493d2e2b39e (diff)
Fix assertion failure on fetch from git:// repository location using --fetch-timeout option
Diffstat (limited to 'bpkg')
-rw-r--r--bpkg/fetch-git.cxx4
1 files 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.
}