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

Compare commits

...

2 commits

Author SHA1 Message Date
cwarlich
efd0362f25
Merge c8e5e5c994 into 640b324401 2024-11-08 14:51:37 -06:00
Christof Warlich
c8e5e5c994 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.
2021-04-25 18:05:42 +02:00

2
yadm
View file

@ -853,7 +853,7 @@ function clone() {
rm -rf "$wc"
# 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"