fix false error reporting for .gitignore