From: seanl@fe5df935169a5440a52bdbfc5fece85cdd002d68 Date: Tue, 26 Jan 2021 01:05:19 +0000 (+0000) Subject: (no commit message) X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~98^2~148^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d72c5cc337ba7e88b84b26719114b45a67beded0;p=git-annex.git --- diff --git a/doc/bugs/exporttree_+_importtree_+_wanted___61___deleted_files.mdwn b/doc/bugs/exporttree_+_importtree_+_wanted___61___deleted_files.mdwn index 4cd573259e..666fc6fee5 100644 --- a/doc/bugs/exporttree_+_importtree_+_wanted___61___deleted_files.mdwn +++ b/doc/bugs/exporttree_+_importtree_+_wanted___61___deleted_files.mdwn @@ -1,6 +1,6 @@ ### Please describe the problem. -I am trying to use git-annex to keep files in sync between a server and my music player. I don't want everything on the server to go to the music player, so I have a "wanted" expression defined: `exclude=*/archive/* and (include=ASMR/* or include=Music/* or include=Mods/* or include=Playlists/*). My expectation was that `git annex sync` would ignore any files that didn't match wanted on the remote, and indeed the first time I run it it does. However, the second time I run it, it deletes any local files that aren't on the remote. Presumably git-annex thinks those files were deleted on the remote because its tracking branch is descended from the branch in which the files were created. +I am trying to use git-annex to keep files in sync between a server and my music player. I don't want everything on the server to go to the music player, so I have a "wanted" expression defined: `exclude=*/archive/* and (include=ASMR/* or include=Music/* or include=Mods/* or include=Playlists/*)`. My expectation was that `git annex sync` would ignore any files that didn't match wanted on the remote, and indeed the first time I run it it does. However, the second time I run it, it deletes any local files that aren't on the remote. Presumably git-annex thinks those files were deleted on the remote because its tracking branch is descended from the branch in which the files were created. ### What steps will reproduce the problem?