Skip to content

Commit

Permalink
Allow creation of apps in empty mercurial repos (#1811)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
GreenGremlin authored and Timer committed Mar 20, 2017
1 parent b9e549e commit e3db147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-react-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ function fixDependencies(packageName) {
// https://github.com/facebookincubator/create-react-app/pull/368#issuecomment-243446094
function isSafeToCreateProjectIn(root) {
var validFiles = [
'.DS_Store', 'Thumbs.db', '.git', '.gitignore', '.idea', 'README.md', 'LICENSE', 'web.iml'
'.DS_Store', 'Thumbs.db', '.git', '.gitignore', '.idea', 'README.md', 'LICENSE', 'web.iml', '.hg', '.hgignore', '.hgcheck'
];
return fs.readdirSync(root)
.every(function(file) {
Expand Down

0 comments on commit e3db147

Please sign in to comment.