aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydractl/sync-media4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media
index bf95678..c4e27d4 100755
--- a/share/hydractl/sync-media
+++ b/share/hydractl/sync-media
@@ -67,8 +67,8 @@ function sync_media_add_metadata {
find -name metadata.pdf.lua.old -exec git add {} \;
# Darktable sidecar files
- find -name '*.xmp' -type l -exec git annex unlock {} \;
- find -name '*.xmp' -exec git add {} \;
+ find -name '*.xmp' -type l ! -path '*.git' -exec git annex unlock {} \;
+ find -name '*.xmp' ! -path '*.git' -exec git add {} \;
}
# If there is a playlists folder, make sure mpd user can write to it