]> gitweb.fluxo.info Git - cache.git/commitdiff
Adds post-receive hook
authorCache Saravento <cache@sarava.org>
Fri, 7 Aug 2015 17:54:43 +0000 (14:54 -0300)
committerCache Saravento <cache@sarava.org>
Fri, 7 Aug 2015 17:54:43 +0000 (14:54 -0300)
bin/post-receive [new file with mode: 0755]
bin/post-update

diff --git a/bin/post-receive b/bin/post-receive
new file mode 100755 (executable)
index 0000000..512b9fd
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cd ..
+unset GIT_DIR
+
+git checkout -f
index 05eac5c296b9b599cc1b7cf5db893c4ca3f77ac0..beed5248ec84b2bac935cb02d4a75715b17e7c14 100755 (executable)
@@ -7,7 +7,7 @@ if [ -d ".git/annex" ]; then
   git annex sync
 else
   git reset HEAD
-  git checkout .
+  git checkout -f
 fi
 
 cd -