summaryrefslogtreecommitdiff
path: root/commit.d/99git-push
blob: 0c3cdd1e90f42f0c5f37faedbc19fc4f217ef81e (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
set -e

if [ "$VCS" = git ] && [ -d .git ] && [ -n "$PUSH_REMOTE" ]; then
	if git config --get remote.$PUSH_REMOTE.url; then
		git push $PUSH_REMOTE master
	else
		echo "etckeeper warning: Configured remote '$PUSH_REMOTE' is unknown to git"
	fi
fi