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
1 changed files with 1 additions and 1 deletions

View File

@ -771,7 +771,7 @@ function clone() {
# 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"