Fixed bug where locally deleted files were not being deleted from yadm
This commit is contained in:
parent
8a8a95c260
commit
53a0abfaa2
2 changed files with 6 additions and 4 deletions
|
@ -111,10 +111,6 @@ $ systemctl enable cronie
|
||||||
$ systemctl start cronie
|
$ systemctl start cronie
|
||||||
```
|
```
|
||||||
|
|
||||||
## Known Issues
|
|
||||||
|
|
||||||
- When tracked files are deleted, AutoYADM does not delete them from the repository, potentially resulting in conflicts if the repository is pulled/cloned to another machine.
|
|
||||||
|
|
||||||
## Feature Roadmap
|
## Feature Roadmap
|
||||||
|
|
||||||
- [ ] Allow custom `tracked` file location & name
|
- [ ] Allow custom `tracked` file location & name
|
||||||
|
|
|
@ -40,6 +40,12 @@ fi
|
||||||
fi
|
fi
|
||||||
done) <"$AUTOYADMDIR/tracked"
|
done) <"$AUTOYADMDIR/tracked"
|
||||||
|
|
||||||
|
# Now we also stage files already tracked by YADM
|
||||||
|
# that have been renamed or deleted; since the above
|
||||||
|
# loop will not stage them:
|
||||||
|
|
||||||
|
yadm add -u
|
||||||
|
|
||||||
# Define the location of the ssh-agent environment
|
# Define the location of the ssh-agent environment
|
||||||
sshenv="$HOME/.ssh/environment-$HOST"
|
sshenv="$HOME/.ssh/environment-$HOST"
|
||||||
if [[ -n $(yadm status --porcelain) ]]; then
|
if [[ -n $(yadm status --porcelain) ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue