Skip to content

Commit f4c39d7

Browse files
committed
Fix revwalk test to pass oid instead of commit
1 parent 416d47f commit f4c39d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/tests/revwalk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ describe("Revwalk", function() {
315315
var walker = repository.createRevWalk();
316316

317317
repository.getMasterCommit().then(function(firstCommitOnMaster) {
318-
walker.walk(firstCommitOnMaster, function(err, commit) {
318+
walker.walk(firstCommitOnMaster.id(), function(err, commit) {
319319
if (err && err.errno === NodeGit.Error.CODE.ITEROVER) {
320320
return done();
321321
}

0 commit comments

Comments
 (0)