yadm-dev / yadm

Yet Another Dotfiles Manager
https://yadm.io/
GNU General Public License v3.0
5.15k stars 177 forks source link

fix(clone): reset index of YADM_WORK #492

Closed AVM-Martin closed 2 months ago

AVM-Martin commented 4 months ago

What does this PR do?

Whenever using clone command inside YADM_WORK sub-directory, we need to checkout the correct repo contents.

Steps to reproduce:

mkdir $HOME/subdir
cd $HOME/subdir

yadm clone --bootstrap "<repo-url>"
yadm status

What issues does this PR fix or reference?

[A list of related issues / pull requests.]

Previous Behavior

yadm status reported a lot of deleted files.

New Behavior

yadm status will report clean working directory.

Have tests been written for this change?

Yes

Have these commits been signed with GnuPG?

Yes


Please review yadm's Contributing Guide for best practices.