Versioned file in ignored folder causes wrong overlays
To reproduce:
- Create a new, empty repo.
- Create a directory
dir
with two filesignored.txt
andversioned.txt
. - Create a top level
.gitignore
with the line/dir/
.
Until now, everything is fine, and (only after restarting TGitCache.exe, which is a separate bug) the directory itself as well as the two contained files are displayed with the "ignored" overlay icon.
- Now select TortoiseGit->Add... from the context menu of
versioned.txt
. This triggers the bug that now the overlay icon ofignored.txt
has changed to "unknown". This contradicts the fact thatignored.txt
is still (and correctly) not listed in the commit dialog.
The wrong overlay icon stays like that even after a commit.
My workaround: Changing the .gitignore
line to /dir/*
.
(Seen with TortoiseGit-preview-2.5.3.0-20171029-d7ba7e9-64bit.msi
on Windows 7.)