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
4 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file,!1933Add note about installing watchman
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