From 2b0cce8f0ec9957e448cfe6fde144e269c8ee2ea Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 15 Nov 2021 12:27:35 +0100 Subject: Fix git retry logic Cloning repo without branch was broken --- core/includes/downloader.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/includes/downloader.inc b/core/includes/downloader.inc index e18db442..6f1259c7 100644 --- a/core/includes/downloader.inc +++ b/core/includes/downloader.inc @@ -148,6 +148,8 @@ autoclone () { elif [ -n "$checkout" ]; then git -C "$dstdir/$dst" checkout "$checkout" && break perror "Could not checkout $checkout from $url" + else + break fi fi done -- cgit v1.2.3-55-g7522