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

if [ "$GL_REPO" == "infrastructure/repositories/software" -o "$GL_REPO" == "infrastructure/repositories/web" ]; 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