hg-pre-commit-hook: typo when touching file
authorMathieu Clabaut <mathieu.clabaut@gmail.com>
Fri, 21 Dec 2007 21:47:30 +0000 (15:47 -0600)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 4 Jan 2008 00:53:46 +0000 (19:53 -0500)
hg/init.d/50hg-pre-commit-hook

index 0603d308b4be8f47f09694082b56698dfa1f680d..bccd79b28552f30a626415ce7f7e1b33c539e783 100644 (file)
@@ -3,7 +3,7 @@ set -e
 if [ -e .hg/hgrc ] && grep "^\[hooks\]" .hg/hgrc; then
        echo "etckeeper warning: [hooks] section in .hg/hgrc  needs to be manually modified to run: etckeeper pre-commit `pwd`" >&2
 else
-       touch
+       touch .hg/hgrc
        cat >>.hg/hgrc <<EOF
 [hooks]
 # pre-commit hook for etckeeper, to store metadata and do sanity checks