File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ var NodeGit = require ( "../" ) ;
2+
3+ var Config = NodeGit . Config ;
4+
5+ // Backwards compatibility.
6+ Config . getString = function ( ) {
7+ return Config . getStringBuf . apply ( this , arguments ) ;
8+ } ;
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ describe("Config", function() {
3131 return NodeGit . Config . openDefault ( ) ;
3232 } )
3333 . then ( function ( config ) {
34- return config . getStringBuf ( "user.name" ) ;
34+ return config . getString ( "user.name" ) ;
3535 } )
3636 . then ( function ( userNameFromNodeGit ) {
3737 assert . equal ( savedUserName + "-test" , userNameFromNodeGit ) ;
@@ -65,7 +65,7 @@ describe("Config", function() {
6565 return repo . config ( ) ;
6666 } )
6767 . then ( function ( config ) {
68- return config . getStringBuf ( "user.name" ) ;
68+ return config . getString ( "user.name" ) ;
6969 } )
7070 . then ( function ( userNameFromNodeGit ) {
7171 assert . equal ( savedUserName + "-test" , userNameFromNodeGit ) ;
You can’t perform that action at this time.
0 commit comments