From c8e5e5c994f40e26e1ac3b42f783059883f7910b Mon Sep 17 00:00:00 2001 From: Christof Warlich Date: Sun, 25 Apr 2021 15:16:11 +0200 Subject: [PATCH] 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. --- yadm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yadm b/yadm index f07a649..a326d8f 100755 --- a/yadm +++ b/yadm @@ -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"