Fix clone support for older versions of Git (#348)

pull/373/head
Tim Byrne 3 years ago
parent 1544413c91
commit db78669479
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12

@ -767,8 +767,8 @@ function clone() {
rm -rf "$YADM_REPO" "$wc" rm -rf "$YADM_REPO" "$wc"
error_out "Unable to clone the repository" error_out "Unable to clone the repository"
} }
rm -rf "$wc"
configure_repo configure_repo
rm -rf "$wc"
# then reset the index as the --no-checkout flag makes the index empty # then reset the index as the --no-checkout flag makes the index empty
"$GIT_PROGRAM" reset --quiet -- . "$GIT_PROGRAM" reset --quiet -- .

Loading…
Cancel
Save