1
0
Fork 0
mirror of synced 2024-12-04 14:45:36 -05:00

fix(clone): reset index of YADM_WORK

This commit is contained in:
AVM.Martin 2024-07-21 04:58:42 +07:00
parent 12c51e130b
commit aba434274e
No known key found for this signature in database
GPG key ID: 25F846A221B3F159

2
yadm
View file

@ -827,7 +827,7 @@ function clone() {
rm -rf "$wc" 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 -- "$YADM_WORK"
if [ "$YADM_WORK" = "$HOME" ]; then if [ "$YADM_WORK" = "$HOME" ]; then
debug "Determining if repo tracks private directories" debug "Determining if repo tracks private directories"