From 24631d5ab095fc47e763932ae70683b06d1d7727 Mon Sep 17 00:00:00 2001 From: Lucas Ciruzzi Date: Thu, 24 Aug 2017 17:42:36 -0300 Subject: [PATCH] Repository.init method has a mandatory isBare parameter of type number. --- types/nodegit/nodegit-tests.ts | 2 +- types/nodegit/repository.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/nodegit/nodegit-tests.ts b/types/nodegit/nodegit-tests.ts index 64d1b2a16c..465b5415b7 100644 --- a/types/nodegit/nodegit-tests.ts +++ b/types/nodegit/nodegit-tests.ts @@ -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 }); diff --git a/types/nodegit/repository.d.ts b/types/nodegit/repository.d.ts index a8882b5d55..b29a411725 100644 --- a/types/nodegit/repository.d.ts +++ b/types/nodegit/repository.d.ts @@ -48,12 +48,12 @@ export class Repository { * * @static * @param {string} path - * @param {boolean} [isBare] + * @param {number} isBare * @returns {Promise} * * @memberof Repository */ - static init(path: string, isBare?: boolean): Promise; + static init(path: string, isBare: number): Promise; /** * *