From: "Paul S. Strauss" <pss@acm.org>
To: git@vger.kernel.org
Subject: Re: git config not following include paths by default
Date: Thu, 18 Jun 2020 13:40:11 -0700 [thread overview]
Message-ID: <b9f47155-e6ef-5868-898d-f5a703e2fd94@acm.org> (raw)
In-Reply-To: <6aab7843-7ece-5499-c074-a5fa8ef68beb@acm.org>
Update:
The problem is related to my having GIT_CONFIG set to a file other than
~/.gitconfig - when I unset GIT_CONFIG and copied my config file to
~/.gitconfig, the include worked as expected.
So, to reproduce:
Do NOT have a ~/.gitconfig file
Set GIT_CONFIG to a configuration file with [include] statements
Then the behavior I mentioned will occur
On 6/18/20 1:25 PM, Paul S. Strauss wrote:
> Using git version 2.25.1 in a bash shell on Ubuntu 20.04 (focal).
>
> My global git config file has an [include] with path set to additional
> configuration.
>
> "git config --list --show-origin --includes" shows all of my configuration,
> including items from the included file.
>
> "git config --list --show-origin" shows only the items in my main config file.
> Not sure why "--no-includes" is the default, but not a huge deal either way.
>
> What is a big deal is that none of the configuration in my included config
> file is available to me. I have lots of aliases and other settings in the
> included file, but none of them work.
>
> This can't be the expected behavior, can it? If so, then including config
> files is pretty useless.
>
--
Paul S. Strauss pss@acm.org
next prev parent reply other threads:[~2020-06-18 20:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-18 20:25 git config not following include paths by default Paul S. Strauss
2020-06-18 20:40 ` Paul S. Strauss [this message]
2020-06-19 11:58 ` Jeff King
2020-06-19 18:50 ` Paul S. Strauss
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=b9f47155-e6ef-5868-898d-f5a703e2fd94@acm.org \
--to=pss@acm.org \
--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;
as well as URLs for NNTP newsgroup(s).