diff options
author | Erik Kundiman <erik@megapahit.org> | 2024-11-28 20:15:50 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2024-11-28 20:15:50 +0800 |
commit | bb7d004a4ee8e1d0f20659c2780b21b51074bc86 (patch) | |
tree | 56e5c0ba0b8e94b51b51facafe669fc72fb184a6 /post-receive | |
parent | 18b43225484abd4b5fd5681dbd36c1472b46f265 (diff) |
Current HTML files, .gitignore and post-receive
Diffstat (limited to 'post-receive')
-rwxr-xr-x | post-receive | 14 |
1 files changed, 14 insertions, 0 deletions
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 |