summaryrefslogtreecommitdiffstats
path: root/post-receive.push-forward
blob: 56800ed37441b10a22eaf72ab7b0a4a0c0b3db1e (plain)
1
2
3
4
5
6
7
8
9
10
#! /bin/bash
while read old new ref ; do
	BRANCH="${ref#refs/heads/}"
	
	if [ "${new}" = "0000000000000000000000000000000000000000" ]; then
		git push --force vm-staticweb ":${BRANCH}"
	else
		git push --force vm-staticweb "${BRANCH}"
	fi
done