home · contact · privacy
Add zettel git setup.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 5 Dec 2021 17:38:44 +0000 (18:38 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 5 Dec 2021 17:38:44 +0000 (18:38 +0100)
bullseye/other_files/zettel_hook_post-receive [new file with mode: 0755]

diff --git a/bullseye/other_files/zettel_hook_post-receive b/bullseye/other_files/zettel_hook_post-receive
new file mode 100755 (executable)
index 0000000..3bea5b2
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+ZETTELDIR=/home/plom/zettel
+GIT_WORK_TREE=$ZETTELDIR git checkout -f
+cd $ZETTELDIR
+redo