Added exceptions for .git directories.