diff options
-rwxr-xr-x | share/hydractl/sync-media | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/share/hydractl/sync-media b/share/hydractl/sync-media index 17ee219..0976c68 100755 --- a/share/hydractl/sync-media +++ b/share/hydractl/sync-media @@ -248,6 +248,8 @@ for folder in $REPOSITORIES; do # Repository maintenance sync_media_fsck sync_media_dropunused + git prune + git gc ) fi @@ -315,6 +317,8 @@ if [ ! -z "$DRIVE" ] && [ -d "$VOLUME/$MEDIA" ]; then sync_media_getall $VOLUME/$MEDIA/$folder sync_media_fsck sync_media_dropunused + git gc + git prune #git annex drop --auto --numcopies=2 ) elif [ -d "$CACHE/$folder" ] && [ ! -d "$CACHE/$folder/.git" ]; then |