You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/10/08 02:16:19 UTC
git commit: Make cordova serve ignore dot files.
Updated Branches:
refs/heads/master d3b329277 -> 7dcdae043
Make cordova serve ignore dot files.
Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/7dcdae04
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/7dcdae04
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/7dcdae04
Branch: refs/heads/master
Commit: 7dcdae043be34b1bb6f0751d4bab40d10b9d0169
Parents: d3b3292
Author: Andrew Grieve <ag...@chromium.org>
Authored: Mon Oct 7 20:15:39 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Mon Oct 7 20:15:39 2013 -0400
----------------------------------------------------------------------
src/serve.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/7dcdae04/src/serve.js
----------------------------------------------------------------------
diff --git a/src/serve.js b/src/serve.js
index de4a3a2..fadbff8 100644
--- a/src/serve.js
+++ b/src/serve.js
@@ -104,7 +104,7 @@ function processAddRequest(request, response, platformId, projectRoot) {
'configPath': '/' + platformId + '/config.xml',
'wwwPath': '/' + platformId + '/www',
'wwwFileList': shell.find(wwwDir)
- .filter(function(a) { return !fs.statSync(a).isDirectory(); })
+ .filter(function(a) { return !fs.statSync(a).isDirectory() && !/(^\.)|(\/\.)/.test(a) })
.map(function(a) { return a.slice(wwwDir.length); })
};
response.writeHead(200, {