diff options
author | Simon Rettberg | 2021-11-15 12:27:35 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-11-15 12:27:35 +0100 |
commit | 2b0cce8f0ec9957e448cfe6fde144e269c8ee2ea (patch) | |
tree | ad9a1bb02b5ca4c7c0715fc4dab145d439abd1ba | |
parent | [libvirt-src] /var/run is not empty - delete with -rf (diff) | |
download | mltk-2b0cce8f0ec9957e448cfe6fde144e269c8ee2ea.tar.gz mltk-2b0cce8f0ec9957e448cfe6fde144e269c8ee2ea.tar.xz mltk-2b0cce8f0ec9957e448cfe6fde144e269c8ee2ea.zip |
Fix git retry logic
Cloning repo without branch was broken
-rw-r--r-- | core/includes/downloader.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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 |