Re: Git add claims path is ignored, but git check-ignore returns no results

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Aug 12, 2019 at 04:24:59PM +0000, geoffsimons@xxxxxxx wrote:

> I can’t find anything relevant in .git/info/exclude either, or any of
> the .gitignore files I could find.
> 
> git check-ignore .\Source\UI\Website\LiveFeeds\Releases\IO\ReleasesSerializer.cs
> git add .\Source\ui\Website\LiveFeeds\Releases\io\ReleasesSerializer.cs
> The following paths are ignored by one of your .gitignore files:
> Source/ui/Website/LiveFeeds/Releases/io/ReleasesSerializer.cs
> Use -f if you really want to add them.
> 
> I get a similar result for adding files in that directory, or the
> parent directory (releases), but the grandparent directory (livefeeds)
> works fine.  Any ideas what might be causing this?

I notice that your "add" and "check-ignore" commands differ in the case
of "UI". I think both commands should work correctly when on a
case-insensitive filesystem (and a few checks I did after setting
core.ignorecase manually seem to confirm this).

But maybe try it with "ui" in the check-ignore command and see if that
changes anything?

Another thing I notice is that you're using Windows-style back-slashes
for the path separators (whereas internally in Git, everything is
front-slashes). AFAIK that's supposed to work everywhere on Windows, but
I wouldn't be surprised if there are corner cases where it doesn't. Does
switching to:

  git check-ignore ./Source/ui/Website/LiveFeeds/Releases/IO/ReleasesSerializer.cs

help?

-Peff



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux