Pārlūkot izejas kodu

Handle syncing git annexes

Samuel W. Flint 5 gadi atpakaļ
vecāks
revīzija
b12edcd6a2
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  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