1
0
Fork 0
mirror of synced 2024-11-18 15:15:35 -05:00

Fix "yadm clone" from within a subdir of $YADM_WORK

When running "yadm clone" from a subdirectory of $YADM_WORK, e.g. from
$HOME/Music, YADM failed to populate its working context: The list of
files returned by the subsequent "git ls-files --deleted" was empty then.
This commit is contained in:
Christof Warlich 2021-04-25 15:16:11 +02:00
parent a4d39c7504
commit c8e5e5c994

2
yadm
View file

@ -771,7 +771,7 @@ function clone() {
configure_repo
# 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
debug "Determining if repo tracks private directories"