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

project=Megapahit
product=website
repo=/usr/local/git/pub/$product.git
web=~www/apache24/data

unset GIT_DIR
cd $HOME/Documents/$project/$product \
	&& git pull \
	&& git --git-dir=$repo --work-tree=$web checkout -f master -- \
		index.html \
		7.1.13.53452.html \
		7.1.14.53615.html \
		7.1.13.53691.html \
	&& git --git-dir=$repo push -f