@@ -12,24 +12,24 @@ describe("Revwalk", function() {
1212 var test = this ;
1313 return Repository . open ( reposPath ) . then ( function ( repository ) {
1414 test . repository = repository ;
15- return test . repository . getBranch ( "rev-walk" ) . then ( function ( branch ) {
16- test . branch = branch ;
15+ return test . repository . getBranchCommit ( "rev-walk" ) . then ( function ( commit ) {
16+ test . commit = commit ;
1717 done ( ) ;
1818 } ) ;
1919 } ) ;
2020 } ) ;
2121
2222 beforeEach ( function ( ) {
2323 this . walker = this . repository . createRevWalk ( ) ;
24- this . walker . push ( this . branch . id ( ) ) ;
24+ this . walker . push ( this . commit . id ( ) ) ;
2525 } ) ;
2626
2727 it ( "can create a walker" , function ( ) {
2828 assert . ok ( this . walker instanceof Revwalk ) ;
2929 } ) ;
3030
3131 it ( "can push an object" , function ( ) {
32- var sha = this . branch . sha ( ) ;
32+ var sha = this . commit . sha ( ) ;
3333
3434 return this . walker . next ( ) . then ( function ( commit ) {
3535 assert . equal ( sha , commit ) ;
@@ -49,7 +49,7 @@ describe("Revwalk", function() {
4949 assert . equal ( commit . toString ( ) ,
5050 "b8a94aefb22d0534cc0e5acf533989c13d8725dc" ) ;
5151 test . walker = test . repository . createRevWalk ( ) ;
52- test . walker . push ( test . branch . id ( ) ) ;
52+ test . walker . push ( test . commit . id ( ) ) ;
5353 test . walker . hide (
5454 Oid . fromString ( "b8a94aefb22d0534cc0e5acf533989c13d8725dc" ) ) ;
5555
@@ -89,9 +89,9 @@ describe("Revwalk", function() {
8989 this . timeout ( 10000 ) ;
9090 return Repository . open ( reposPath ) . then ( function ( repository ) {
9191 var walker = repository . createRevWalk ( ) ;
92- return repository . getMaster ( ) . then ( function ( master ) {
92+ return repository . getMasterCommit ( ) . then ( function ( firstCommitOnMaster ) {
9393 var did = false ;
94- walker . walk ( master , function ( error , commit ) {
94+ walker . walk ( firstCommitOnMaster , function ( error , commit ) {
9595 for ( var i = 0 ; i < 1000 ; i ++ ) {
9696 if ( true ) {
9797 commit . author ( ) . name ( ) ;
0 commit comments