aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/mgagit/templates/git-post-update-hook
blob: a2550ad37f63aca07a4e2c11c741728dbeee2e77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

if [ "${GL_REPO:0:28}" == "infrastructure/repositories/" ]; then
	OK=no
	(unset GIT_DIR && mgagit glconf && mgagit glrun) >/dev/null 2>&1 && OK=yes
	if [ "$OK" == "yes" ]; then
		echo
		echo "  *** Repository definitions updated"
		echo
	fi
fi
exit 0