Skip to content

Commit 9512d97

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 0ace417 commit 9512d97

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/create-react-app/createReactApp.js

+3
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,9 @@ function isSafeToCreateProjectIn(root) {
501501
'README.md',
502502
'LICENSE',
503503
'web.iml',
504+
'.hg',
505+
'.hgignore',
506+
'.hgcheck',
504507
];
505508
return fs.readdirSync(root).every(file => validFiles.indexOf(file) >= 0);
506509
}

0 commit comments

Comments
 (0)