1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2026-03-02 03:49:29 +00:00

Merge pull request #507 from AVM-Martin/fix/reset-yadm-work-index

fix(clone): reset index of YADM_WORK
This commit is contained in:
Erik Flodin
2024-11-29 23:10:35 +01:00
committed by GitHub
2 changed files with 29 additions and 1 deletions

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 -- ":/"
if [ "$YADM_WORK" = "$HOME" ]; then
debug "Determining if repo tracks private directories"