aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/post-receive6
-rwxr-xr-xbin/post-update2
2 files changed, 7 insertions, 1 deletions
diff --git a/bin/post-receive b/bin/post-receive
new file mode 100755
index 0000000..512b9fd
--- /dev/null
+++ b/bin/post-receive
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cd ..
+unset GIT_DIR
+
+git checkout -f
diff --git a/bin/post-update b/bin/post-update
index 05eac5c..beed524 100755
--- a/bin/post-update
+++ b/bin/post-update
@@ -7,7 +7,7 @@ if [ -d ".git/annex" ]; then
git annex sync
else
git reset HEAD
- git checkout .
+ git checkout -f
fi
cd -