Re: git silently ignores include directive with single quotes
- From
- Stas Bekman <stas@stason.org>
- Date
- Sep 10, 2018, 19:52 UTC
- Message-ID
- <b6446834-04e1-ca65-350e-5847e689e2ea@stason.org>
- In-Reply-To
- <xmqq1sa1tb4p.fsf@gitster-ct.c.googlers.com>
To add another report of a similar problem, of silent skipping and not of filepath quoting, I found this one:
https://stackoverflow.com/questions/31203634/git-clean-filter-python-script-on-windows/52264440#52264440
The user created .gitconfig and added to .git/config:
[include]
path = .gitconfigNot realizing that the two were not in the same folder. And probably assuming that .git/config was referring to the root of repository, and not relative to .git/, which is a reasonable assumption.
Of course he had no way of resolving this as git wasn't telling him where it wasn't finding the file. i.e.
Can't find: ~/myrepo/.git/.gitconfig
which would have instantly told him where the problem was.
-- ________________________________________________ Stas Bekman <'))))>< <'))))>< https://stasosphere.com https://chestofbooks.com https://experientialsexlab.com https://stason.org https://stasosphere.com/experience-life/my-books