I currently have a very strange issue. I have a repository, which includes another one as submodule. Recently, I added some files (three to be exact) within a subfolder of that submodule. I did that via git cli and not with TortoiseGit. Everything worked fine and the files show up correctly at the remote.
But in the Windows Explorer I was missing the overlay icons for the files as well as for the subfolder.
I started playing around. When I changed a file, the red overlay icon appeared. And it stayed there even after refreshing the explorer view. When reverting it back, the file got its green overlay icon. But when refreshing the explorer view or navigating around, the green icon disappeared.
So as the overlay icons are generally working (for all other files in all my repositories as well as sometimes for the files in question) it is not related to the typical icon overlay issue with too many programs claiming them as in [1].
I clone a new copy of my repo. All files are there and the icons work as they should.
I also checked the casing of my file names and folders as suggested by [2]. I did not spot any issues there.
I dug around more and tried the two answers [3] and [4] to a similar question. [3] did have no effect. Surprisingly [4] worked as long as the parent directory was renamed. As soon as I changed the name back to the original name I was back to the original non working behavior.
So here I am, without any clue what this could be. I know I could solve my problem with a new clone or with renaming of the folder. But I would like to understand the root cause. Because either I did something wrong in my process and probably should change it, or there is a bug in TortoiseGit, TGitCache or something like that, which maybe could be fixed.
Thanks for your help in advance.