summaryrefslogtreecommitdiff
path: root/hooks/post-receive
blob: f4b85478fc3a21e3a8bd0f8e5f8399155d6d8525 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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 \
		7.1.13.53431.html \
	&& git --git-dir=$repo push -f