Skip to content

Commit e3db147

Browse files
GreenGremlinTimer
authored andcommitted
Allow creation of apps in empty mercurial repos (#1811)
* Allow creation of apps in empty mercurial repos * Adding .hgignore to list of validFiles for isSafeToCreateProjectIn check * Adding .hgcheck to list of validFiles for isSafeToCreateProjectIn check
1 parent b9e549e commit e3db147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/create-react-app/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ function fixDependencies(packageName) {
504504
// https://github.com/facebookincubator/create-react-app/pull/368#issuecomment-243446094
505505
function isSafeToCreateProjectIn(root) {
506506
var validFiles = [
507-
'.DS_Store', 'Thumbs.db', '.git', '.gitignore', '.idea', 'README.md', 'LICENSE', 'web.iml'
507+
'.DS_Store', 'Thumbs.db', '.git', '.gitignore', '.idea', 'README.md', 'LICENSE', 'web.iml', '.hg', '.hgignore', '.hgcheck'
508508
];
509509
return fs.readdirSync(root)
510510
.every(function(file) {

0 commit comments

Comments
 (0)