From bb7d004a4ee8e1d0f20659c2780b21b51074bc86 Mon Sep 17 00:00:00 2001 From: Erik Kundiman Date: Thu, 28 Nov 2024 20:15:50 +0800 Subject: Current HTML files, .gitignore and post-receive --- post-receive | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 post-receive (limited to 'post-receive') diff --git a/post-receive b/post-receive new file mode 100755 index 0000000..7ace9d2 --- /dev/null +++ b/post-receive @@ -0,0 +1,14 @@ +#!/bin/sh + +product=web +repo=/usr/local/git/pub/$product.git +web=$HOME/public_html +#web=~www/apache24/data + +unset GIT_DIR +cd $HOME/$product \ + && git pull \ + && git --git-dir=$repo --work-tree=$web checkout -f master -- \ + index.html \ + 7.1.10.52662.html \ + && git --git-dir=$repo push -- cgit v1.2.3