Skip to content

Commit 0ee0229

Browse files
author
Roger K
committed
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.
1 parent 61a0cab commit 0ee0229

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/create-branch.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ nodegit.Repository.open(path.resolve(__dirname, "../.git"))
99
return repo.createBranch(
1010
"new-branch",
1111
commit,
12-
0,
13-
repo.defaultSignature(),
14-
"Created new-branch on HEAD");
12+
0);
1513
});
1614
}).done(function() {
1715
console.log("All done!");

0 commit comments

Comments
 (0)