]> gitweb.fluxo.info Git - cache.git/commitdiff
Support for common repos at post-update
authorCache Saravento <cache@sarava.org>
Fri, 7 Aug 2015 17:20:33 +0000 (14:20 -0300)
committerCache Saravento <cache@sarava.org>
Fri, 7 Aug 2015 17:20:33 +0000 (14:20 -0300)
bin/post-update

index 3098dab92fac09972a008f2ededb05189ba05b6b..a45c29af136c8a4b99f552f2818ba6f2cba2f60b 100755 (executable)
@@ -2,7 +2,12 @@
 
 cd ..
 unset GIT_DIR
-git annex sync
+
+if [ -d ".git/annex" ]; then
+  git annex sync
+else
+  git checkout .
+fi
 
 cd -
 exec git update-server-info