@@ -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
@@ -158,7 +158,7 @@ git.Repo.open(path.resolve(__dirname, '../.git'), function(error, repo) {
158158 // functions very similarly to the commit lookup, parsing and creation
159159 // methods, since the objects themselves are very similar.
160160
161- oid = git . Oid . fromString ( "97f6d755647aca272e7c8003323472cefca772fc " ) ;
161+ oid = git . Oid . fromString ( "43f0ac7359e30b769f6b1714e0adbaf51bedbb65 " ) ;
162162 repo . getTag ( oid , function ( error , tag ) {
163163 if ( error ) throw error ;
164164
@@ -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