Skip to content

Commit

Permalink
Add .git to standard functions ignore
Browse files Browse the repository at this point in the history
If a functions-only developer chooses to put their functions source in the root folder, this could be a source of longer deploy times.  See #536
  • Loading branch information
samtstern committed Jun 25, 2020
1 parent ee732bd commit 923b47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/prepareFunctionsUpload.js
Expand Up @@ -63,7 +63,7 @@ var _packageSource = function(options, sourceDir, configValues) {
// you're in the public dir when you deploy.
// We ignore any CONFIG_DEST_FILE that already exists, and write another one
// with current config values into the archive in the "end" handler for reader
var ignore = options.config.get("functions.ignore", ["node_modules"]);
var ignore = options.config.get("functions.ignore", ["node_modules", ".git", ]);
ignore.push("firebase-debug.log", CONFIG_DEST_FILE /* .runtimeconfig.json */);
return fsAsync
.readdirRecursive({ path: sourceDir, ignore: ignore })
Expand Down

0 comments on commit 923b47f

Please sign in to comment.