summaryrefslogtreecommitdiff
path: root/hg/post-apt.d/50hg-commit
blob: 81f9e9f4b226ef3fe5345774419fbb113b25db1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

if [ -d .hg ]; then

	# TODO: figure out what packages were acted on by the apt run, and
	# include that info in the commit message
	message="committing changes after apt run"

	# ignore exit code since it exits nonzero if there is nothing to do
	hg commit $GIT_COMMIT_OPTIONS -m "$message" || true
fi