Skip to content

Commit

Permalink
Fixed createBranch API params
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Roger K committed Sep 25, 2018
1 parent 61a0cab commit 0ee0229
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/create-branch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
Expand Down

0 comments on commit 0ee0229

Please sign in to comment.