From db786694791ebfb70bc775e31b5d7e84f6d69c54 Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Mon, 23 Aug 2021 08:11:38 -0500 Subject: [PATCH] Fix clone support for older versions of Git (#348) --- yadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yadm b/yadm index 21d4d7c..d61215d 100755 --- a/yadm +++ b/yadm @@ -767,8 +767,8 @@ function clone() { rm -rf "$YADM_REPO" "$wc" error_out "Unable to clone the repository" } - rm -rf "$wc" configure_repo + rm -rf "$wc" # then reset the index as the --no-checkout flag makes the index empty "$GIT_PROGRAM" reset --quiet -- .