summaryrefslogtreecommitdiff
path: root/commit.d/99push
blob: 5aa8d21669d66d7949e036a0ab692b7bb71ee594 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
if [ -n "$PUSH_REMOTE" ]; then
	if [ "$VCS" = git ] && [ -d .git ]; then
		git push "$PUSH_REMOTE" master || true
	elif [ "$VCS" = hg ] && [ -d .hg ]; then
		hg push "$PUSH_REMOTE" || true
	else
		echo "PUSH_REMOTE not yet supported for $VCS" >&2
	fi
fi