From 0ee0229adf21be113ab12ad90099739dc0de0052 Mon Sep 17 00:00:00 2001 From: Roger K Date: Tue, 25 Sep 2018 09:33:52 -0700 Subject: [PATCH] Fixed createBranch API params The 'create-branch.js' example file had outdated params for 'Repository.createBranch() when compared to the API documentation. I changed the params to match the documentation. --- examples/create-branch.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/create-branch.js b/examples/create-branch.js index 28ab6bea5..7374de053 100644 --- a/examples/create-branch.js +++ b/examples/create-branch.js @@ -9,9 +9,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git")) return repo.createBranch( "new-branch", commit, - 0, - repo.defaultSignature(), - "Created new-branch on HEAD"); + 0); }); }).done(function() { console.log("All done!");