Re: bug when combined with etckeeper
To
Naja Melan
Cc
git@vger.kernel.org
From
Joey Hess
See Also
Prev
Date
2018-10-10 14:34:27 UTC
/etc/.git/hooks/pre-commit is installed by etckeeper and runs
etckeeper pre-commit, which deals with /etc/.etckeeper, including
running "git add .etckeeper". Why that file would match a gitignore
seems much less important than why git would run that hook in an
entirely different git repository.

       core.hooksPath
           By default Git will look for your hooks in the $GIT_DIR/hooks
           directory. Set this to different path, e.g.  /etc/git/hooks, and Git
           will try to find your hooks in that directory, e.g.
           /etc/git/hooks/pre-receive instead of in $GIT_DIR/hooks/pre-receive.

Hmm, the example "/etc/git/hooks" there is very similar to the
"/etc/.git/hooks" used by etckeeper. So my guess is you have
core.hooksPath set globally.

-- 
see shy jo
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEKKUAw1IH6rcvbA8l2xLbD/BfjzgFAlu+DfMACgkQ2xLbD/Bf
jzhdFQ//S2aL7ixRMNoIM4uCyQgDr4vxsZKYGebrJDt6feY4hEvgCRfy2tV8uzFS
f/e656Nol7OKXxnUV29vqEU9DPjrqeGel8v2UE/Uhpbed67fly4mJdumRy5hpluV
8KwdxgKglMWPSrAeKVoEbq98cW5Hu+Not+Fmwcr2crzvlT/kN0hXEDaH6axclMSy
PY2bSWXtu52S8xaL1Nsec4UXgTV3BoYPMEZS3fE46OHVLa7wQM1WPUylMGc94/Wp
2brrU9N3VBSroc0USyfFbTPvb2H9Qr0iBkfaS0wvXmYn+X6PfWSJn9U6ovsxdbvY
zKKkqPJHKV9xsXMol1+y6jG+WLOpAUWi9CY+Gzj97jHmy6eojhWHSwWZnco1wBNi
+lxBnGuamz1y8vNvdGAvesfg0ZiuHqNK3JKYnjEcU0KTVFVI6IbykrDHJj5BW2zl
y68m/uf7FS4Z6+92u8Rg4Ivmfi0l9CqTUc6ziB9pWH/YLc7vcfIm7lIBhP+ysDrD
w+su+nNNhHICvIGf50KoYob9G0SSQsSAnAhdeFVMLDMHkl1zlQgVY9I86xk8RBud
5uHbc5R1mrvTXYh4vXUIOBIB0y844yCL9ezN/R1dSYEP8bClNK3S9c+B4Pezu4OE
zbNtqm/5+PZHb8Ooz+T1etW9AafP3/Ngq1f2fTQDAOJb4I88HOo=
=s3Hh
-----END PGP SIGNATURE-----