History

Update Git documentation (2.30.0)

Simon Legner committed 5 years ago

Commit 3600a9f1 parent 8f17cfa41 files · +4398 −1Browse files

Showing the changes to node_modules/simple-git/src/index.js (1 of 41 files). Show all

Unified · Split

node_modules/simple-git/src/index.js+14−0
@@ -0,0 +1,14 @@
1
2var Git = require('./git');
3
4module.exports = function (baseDir) {
5
6 var dependencies = require('./util/dependencies');
7
8 if (baseDir && !dependencies.exists(baseDir, dependencies.exists.FOLDER)) {
9 throw new Error("Cannot use simple-git on a directory that does not exist.");
10 }
11
12 return new Git(baseDir || process.cwd(), dependencies.childProcess(), dependencies.buffer());
13};
14