From: "Joshua J. Kugler" <joshua@azariah.com>
To: git@vger.kernel.org
Subject: includeIf appears to not be working
Date: Mon, 12 Dec 2022 11:19:41 -0900 [thread overview]
Message-ID: <8316344.DvuYhMxLoT@hosanna> (raw)
So, I've set up includeIf before, and have had it working, but it seems to not
be working in my latest attempt.
This is git 2.38.2 on Ubuntu Linux 20.04.
Contents of ~/.gitconfig (truncated):
[user]
name = Joshua Kugler
email = joshua@personal.com
[includIf "gitdir:~/repos/work/"]
path = ~/repos/work/gitconfig
Contents of ~/repos/work/gitconfig:
[user]
name = Joshua Kugler
email = joshua@work.io
Now, if I do this:
cd /home/jkugler/repos/work/some_repo
and run:
$ git config --show-origin --get user.email
file:/home/jkugler/.gitconfig joshua@personal.com
Like I said, I've set this up before, and had it working. I don't know what
I'm doing differently/wrong...but would be happy to be told so.
Is there a debug command which can show if the gitdir is/isn't matching like I
thought it should? What other command output could help debug this?
Thanks!
j
--
Joshua J. Kugler - Fairbanks, Alaska - joshua@azariah.com
Azariah Enterprises - Programming and Website Design
PGP Key: http://pgp.mit.edu/ ID 0x68108cbb73b13b6a
next reply other threads:[~2022-12-12 20:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-12 20:19 Joshua J. Kugler [this message]
2022-12-12 20:54 ` includeIf appears to not be working Eric Sunshine
2022-12-12 21:05 ` Joshua J. Kugler
2022-12-12 20:55 ` Jeff King
2022-12-12 20:57 ` Jeff King
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=8316344.DvuYhMxLoT@hosanna \
--to=joshua@azariah.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox