summaryrefslogtreecommitdiff
path: root/share/hydractl/sync-media
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-11-02 10:03:50 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-11-02 10:03:50 -0200
commitd3d70fcd08486fbe52e8633113ed0d9c11e5e0c5 (patch)
tree6d9dc84e766c5cd6baa8cb9322639c977d37c3f1 /share/hydractl/sync-media
parent6f2622530468574a79dbe950c033cbf73f4060de (diff)
downloadhydra-d3d70fcd08486fbe52e8633113ed0d9c11e5e0c5.tar.gz
hydra-d3d70fcd08486fbe52e8633113ed0d9c11e5e0c5.tar.bz2
Sync-media: playlist handling
Diffstat (limited to 'share/hydractl/sync-media')
-rwxr-xr-xshare/hydractl/sync-media5
1 files changed, 5 insertions, 0 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media
index c486ff7..a63f782 100755
--- a/share/hydractl/sync-media
+++ b/share/hydractl/sync-media
@@ -35,6 +35,11 @@ function sync_media_identity {
function sync_media_add {
git annex add .
+ # Handle playlists which are generally not managed by git-annex
+ if [ -d "playlists" ]; then
+ git add playlists
+ fi
+
# Adding hidden files and symlinks, git+while version
git status --porcelain -u | sed -e 's/?? //' | while read file; do
if [ -h "$file" ]; then