This will trigger on any directory names that have '.git' somewhere in them; it should just be catching directories named exactly '.git'.