]> gitweb.fluxo.info Git - scripts.git/commitdiff
Feat: tombopen: check for git-annex
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 20 Feb 2021 12:43:34 +0000 (09:43 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 20 Feb 2021 12:43:34 +0000 (09:43 -0300)
tombopen

index 33aa1e74eb7513800717281300eb062ffeff5c58..9cd492d872165decb586f3120b3e720c1842d623 100755 (executable)
--- a/tombopen
+++ b/tombopen
@@ -22,5 +22,10 @@ elif [ ! -e "$KEYS/$TOMB.tomb.key" ]; then
   exit 1
 fi
 
+# Unnanex
+if [ -d "$TOMBS/.git/annex" ] && [ -h "$TOMBS/$TOMB.tomb" ]; then
+  ( cd $TOMBS && git annex unlock $TOMB.tomb )
+fi
+
 # Dispatch
 tomb open $TOMBS/$TOMB.tomb -k $KEYS/$TOMB.tomb.key