1
0
Fork 0
mirror of synced 2024-11-04 09:08:56 -05:00

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

This commit is contained in:
Tim Byrne 2021-08-23 08:11:38 -05:00
parent 1544413c91
commit db78669479
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

2
yadm
View file

@ -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 -- .