From: Joey Hess <id@joeyh.name>
To: Naja Melan <najamelan@autistici.org>
Cc: git@vger.kernel.org
Subject: Re: bug when combined with etckeeper
Date: Wed, 10 Oct 2018 10:34:27 -0400 [thread overview]
Message-ID: <20181010143427.GA2725@kitenet.net> (raw)
In-Reply-To: <4d7cddf8-34b3-eaa4-dc9e-e190062e6135@autistici.org>
[-- Attachment #1: Type: text/plain, Size: 803 bytes --]
/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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2018-10-10 14:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-10 9:33 bug when combined with etckeeper Naja Melan
2018-10-10 14:33 ` Jeff King
2018-10-10 14:34 ` Joey Hess [this message]
2018-10-13 12:36 ` Naja Melan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181010143427.GA2725@kitenet.net \
--to=id@joeyh.name \
--cc=git@vger.kernel.org \
--cc=najamelan@autistici.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).