From 73145b7980a4d1c70933aeba0672615e776811bc Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 20 Oct 2023 09:12:23 +0100 Subject: Revert "Revert "include/git: don't re-download single-trees"" This reverts commit baa3d4f217863ff34c03d54c4014f53812ae12ec. --- include/git.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/git.sh b/include/git.sh index a6ce1cbf..5fa54211 100755 --- a/include/git.sh +++ b/include/git.sh @@ -98,6 +98,10 @@ clone_project() loc="${loc#src/}" loc="src/${loc}" + if [ -d "${loc}" ]; then + printf "%s already exists, so skipping download\n" 1>&2 + return 0 + fi git clone ${url} "${tmp_git_dir}" || \ git clone ${bkup_url} "${tmp_git_dir}" || \ -- cgit v1.2.1