Commit 9512d979 authored by Jonathan's avatar Jonathan Committed by Joe Haddad
Browse files

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
parent 0ace417c
Showing with 3 additions and 0 deletions
+3 -0
...@@ -501,6 +501,9 @@ function isSafeToCreateProjectIn(root) { ...@@ -501,6 +501,9 @@ function isSafeToCreateProjectIn(root) {
'README.md', 'README.md',
'LICENSE', 'LICENSE',
'web.iml', 'web.iml',
'.hg',
'.hgignore',
'.hgcheck',
]; ];
return fs.readdirSync(root).every(file => validFiles.indexOf(file) >= 0); return fs.readdirSync(root).every(file => validFiles.indexOf(file) >= 0);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment