Skip to content

Commit 010d68a

Browse files
committed
fix examples
1 parent 04d2e01 commit 010d68a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

example/general.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ nodegit.Repository.open(path.resolve(__dirname, '../.git'))
7373
// it gives you direct access to the key/value properties of Git. Here
7474
// we'll write a new blob object that just contains a simple string.
7575
// Notice that we have to specify the object type.
76-
return odb.write("test data", "test data".length, nodegit.Object.Type.Blob);
76+
return odb.write("test data", "test data".length, nodegit.Object.TYPE.BLOB);
7777
}).then(function(oid) {
7878
// Now that we've written the object, we can check out what SHA1 was
7979
// generated when the object was written to our database.
@@ -294,7 +294,7 @@ nodegit.Repository.open(path.resolve(__dirname, '../.git'))
294294
// references such as branches, tags and remote references (everything in
295295
// the .git/refs directory).
296296

297-
return repo.getReferenceNames(nodegit.Reference.Type.All);
297+
return repo.getReferenceNames(nodegit.Reference.TYPE.ALL);
298298
}).then(function(referenceNames) {
299299
var promises = [];
300300

0 commit comments

Comments
 (0)