summaryrefslogtreecommitdiff
path: root/commit.d/30git-add
blob: 66d96a90eff629c991b8869127c1cef67826afb7 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
set -e

if [ "$VCS" = git ] && [ -d .git ]; then
	if ! git add .; then
		echo "etckeeper warning: git add failed" >&2
	fi
fi