0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Add .git folder to ignore folders list

closes #6140
- simply added '.git' to the list of folder names to ignore when checking for valid themes.
This commit is contained in:
StevenMcD 2015-12-01 21:12:04 +02:00
parent 84c8149f6a
commit 6956985c28

View file

@ -22,7 +22,7 @@ function readDirectory(dir, options) {
}
ignore = options.ignore || [];
ignore.push('node_modules', 'bower_components', '.DS_Store');
ignore.push('node_modules', 'bower_components', '.DS_Store', '.git');
return readDir(dir)
.filter(function (filename) {