summaryrefslogtreecommitdiff
path: root/hooks/post-receive
blob: 39765860b9fe78cbb270888d235853a9375f5be7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

product=website
repo=/usr/local/git/pub/$product.git
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.12.53252.html \
	&& git --git-dir=$repo push -f