Fixed the oversight of *.git files.

So, it may make sense to rework this by looking at tree changes to detect modified files here.  This would avoid traversing the tree, I can't see how we'd avoid this otherwise.