Browse Source

Handle syncing git annexes

Samuel W. Flint 5 years ago
parent
commit
b12edcd6a2
1 changed files with 6 additions and 0 deletions
  1. 6 0
      git-sync

+ 6 - 0
git-sync

@@ -9,6 +9,12 @@ TREE=$(dirname $GITDIR)
 
 cd $TREE
 
+if [ -d .git/annex ] ; then
+    echo "In an annex repository"
+    git annex sync
+    exit
+fi
+
 [ -e pre-sync ] && sh pre-sync
 git stash push -u -m "SYNC SAVE"
 git pull --all