Merge pull request #19326 from vangware/master

nodegit Repository.init method has a mandatory isBare parameter of type number.
This commit is contained in:
Bowden Kelly
2017-08-24 17:16:18 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ Git.Repository.discover("startPath", 1, "ceilingDirs").then((string) => {
// Use string
});
Git.Repository.init("path", true).then((repository) => {
Git.Repository.init("path", 0).then((repository) => {
// Use repository
});

View File

@@ -48,12 +48,12 @@ export class Repository {
*
* @static
* @param {string} path
* @param {boolean} [isBare]
* @param {number} isBare
* @returns {Promise<Repository>}
*
* @memberof Repository
*/
static init(path: string, isBare?: boolean): Promise<Repository>;
static init(path: string, isBare: number): Promise<Repository>;
/**
*
*