From 6b2653f8cd61ca477cf6b61ab66d9fc449cebb31 Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Thu, 18 Jul 2024 23:23:02 +0100
Subject: [PATCH] git.sh: warn when a cached clone fails

Signed-off-by: Leah Rowe <leah@libreboot.org>
---
 include/git.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/git.sh b/include/git.sh
index 43a4543..3a6247d 100644
--- a/include/git.sh
+++ b/include/git.sh
@@ -101,6 +101,8 @@ fetch_submodule()
 
 tmpclone()
 {
+	[ "$repofail" = "y" ] && \
+	    printf "Cached clone failed; trying online.\n" 1>&2
 	repofail="n"
 
 	[ $# -lt 6 ] || rm -Rf "$3" || $err "git retry: !rm $3 ($1)"
-- 
GitLab