From: "Helmut K. C. Tessarek" <tessarek@evermeet.cx>
To: git@vger.kernel.org
Subject: includeIf ignores subdirectories (possible bug)
Date: Sun, 14 Jun 2020 11:43:39 -0400 [thread overview]
Message-ID: <7aabac4a-ef75-74bd-01d9-5c6de27f9338@evermeet.cx> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1404 bytes --]
I've noticed a strange behavior, which might be a bug.
When I'm in a subdirectory of a repo, the IncludeIf is ignored, which makes
certain tasks only possible in the root directory of the repo. e.g. commit
Here's a minimal config:
.gitconfig:
[includeIf "gitdir:~/projects/personal/"]
path = .gitconfig-personal
[includeIf "gitdir:~/projects/work/"]
path = .gitconfig-work
[commit]
gpgsign = true
.gitconfig-personal:
[user]
name = Helmut K. C. Tessarek
email = personal@email.com
signingkey = xxxxxxx1
.gitconfig-work:
[user]
name = K. C. Tessarek
email = work@email.com
signingkey = xxxxxxx2
Ok, now create a repo in ~/projects/personal/test/
then add a directory to that repo and commit
cd ~/projects/personal/test/
mkdir new-dir
git add .
git commit -m "new dir"
# committed with the correct user name and email, and signed with the correct key
cd new-dir
touch file
git add .
git commit -m "new file"
# error: name and email are empty, key is empty to
Run:
git config -l --show-origin
No entries for name, email, signingkey
Cheers,
K. C.
--
regards Helmut K. C. Tessarek KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944
/*
Thou shalt not follow the NULL pointer for chaos and madness
await thee at its end.
*/
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
reply other threads:[~2020-06-14 16:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7aabac4a-ef75-74bd-01d9-5c6de27f9338@evermeet.cx \
--to=tessarek@evermeet.cx \
--cc=git@vger.kernel.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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).