From f0e8ac47bc52d40099cc0adc486cd1cbf395a339 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Thu, 1 Dec 2016 11:50:47 -0500 Subject: Update publisher to work with post-receive hooks. --- publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish.sh b/publish.sh index 7a96118..2b223a2 100755 --- a/publish.sh +++ b/publish.sh @@ -2,7 +2,7 @@ set -x cd $(dirname $0) -(cd input && git pull) +git --work-tree=input --git-dir=/storage/projects/org.git checkout -f INPUTS=$(find input -name '*.org' -exec grep -l "#+PUBLISH" {} \;) readonly filter='s/#\+PUBLISH//g; ;s/\[file:([^\]]*)\.org\]/[file:$1.html]/g' -- cgit v1.2.3