From: Adrian Kappel <atkappel@gmail.com>
To: git@vger.kernel.org
Subject: [Bug Report] [includeIf] does not parse case insensitive -> case sensitive symlink gitdir
Date: Fri, 27 Oct 2017 09:55:58 -0400 [thread overview]
Message-ID: <CAEm1wifEZ5CXH7N_cCJpXQN-1dWBRZ1OQ=bJH-X=kR15Bg0Sdw@mail.gmail.com> (raw)
Hello all, not sure if the issue I've come across is a known bug or
addressable, but wanted to report it just in-case.
** Summary
------------------------------------------------------------------
Using the [includeIf] configuration statement with a symlink'd gitdir
will not work if the symlink is on a case insensitive volume and the
location it references is on a case sensitive volume.
** Steps to reproduce
------------------------------------------------------------------
1. Create symlink (case insensitive -> case sensitive):
/Users/usera/dev -> /Volumes/CaseSensitive/dev
2. Create two files: .gitignore and .gitignore-work, both stored in
/Users/usera/
.gitconfig
-------------
[user]
name = First Last
[includeIf "gitdir:~/dev/work"]
path = .gitconfig-work
.gitconfig-work
--------------------
[user]
email = email@address.com
3. cd into a subfolder of ~/dev/work that has been git initialized.
Let's say ~/dev/work/repo
4. Run git config --includes user.email
5. See that nothing is output from the command
6. Update the [includeIf] statement in .gitconfig to be the real
location i.e. "gitdir:/Volumes/CaseSensitive/dev/work/repo"
7. Rerun the command from [4]
8. See that email@address.com is output from the command
** Other variations that were not tested
------------------------------------------------------------------
- symlink on case sensitive volume referencing a location on a case
insensitive volume
** Environment Information
------------------------------------------------------------------
git --version: 2.14.1
OS: macOS Sierra 10.12.6
If a fix is not feasible or likely to be implemented, I would
recommend that we update the git site's documentation to reflect this
gotcha. After verification of course.
Best,
Adrian Kappel
akappel <https://github.com/akappel/>
next reply other threads:[~2017-10-27 13:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-27 13:55 Adrian Kappel [this message]
2017-10-27 15:33 ` [Bug Report] [includeIf] does not parse case insensitive -> case sensitive symlink gitdir Torsten Bögershausen
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='CAEm1wifEZ5CXH7N_cCJpXQN-1dWBRZ1OQ=bJH-X=kR15Bg0Sdw@mail.gmail.com' \
--to=atkappel@gmail.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.
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).