@@ -28,7 +28,7 @@ git.Repo.open(path.resolve(__dirname, '../.git'), function(error, repo) {
2828 // **nodegit** uses a simple wrapper around hash values called an `Oid`.
2929 // The oid validates that the SHA is well-formed.
3030
31- var oid = git . Oid . fromString ( 'fd373a561d63bfc0a5665608fe057f2131d81fee ' ) ;
31+ var oid = git . Oid . fromString ( 'c27d9c35e3715539d941254f2ce57042b978c49c ' ) ;
3232
3333 // Most functions in in **nodegit** that take an oid will also take a
3434 // string, so for example, you can look up a commit by a string SHA or
@@ -175,6 +175,7 @@ git.Repo.open(path.resolve(__dirname, '../.git'), function(error, repo) {
175175 } ) ;
176176 } ) ;
177177
178+
178179 // #### Tree Parsing
179180
180181 // A Tree is how Git represents the state of the filesystem
@@ -315,8 +316,8 @@ git.Repo.open(path.resolve(__dirname, '../.git'), function(error, repo) {
315316 repo . getReference ( referenceName , function ( error , reference ) {
316317 if ( error ) throw error ;
317318
318- if ( reference . isOid ( ) ) {
319- console . log ( "Reference:" , referenceName , reference . oid ( ) ) ;
319+ if ( reference . isConcrete ( ) ) {
320+ console . log ( "Reference:" , referenceName , reference . target ( ) ) ;
320321 } else if ( reference . isSymbolic ( ) ) {
321322 console . log ( "Reference:" , referenceName , reference . symbolicTarget ( ) ) ;
322323 }
0 commit comments