summaryrefslogtreecommitdiff
path: root/hg/pre-commit.d/20warn-hardlinks
blob: aa4b7053e618e20b449eac09193fd92c34509f31 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# TODO
# Not sure if it is the case with Mercurial ?
set -e
hardlinks=$(find -type f -not -links 1 | grep -v /.hg/) || true
if [ -n "$hardlinks" ]; then
	echo "etckeeper warning: hardlinked files could cause problems with mercurial:" >&2
	echo "$hardlinks" >&2
fi