File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ before(function() {
4545 } )
4646 . then ( function ( ) {
4747 return fse . mkdir ( local ( "home" ) ) ;
48+ } )
49+ . then ( function ( ) {
50+ return fse . writeFile ( local ( "home" , ".gitconfig" ) ,
51+ "[user]\n name = John Doe\n email = johndoe@example.com" ) ;
4852 } ) ;
4953} ) ;
5054
Original file line number Diff line number Diff line change @@ -15,13 +15,12 @@ describe("Config", function() {
1515
1616 it ( "can get and set a global value" , function ( ) {
1717 var savedUserName ;
18- var dummyUserName = "Dummy O'Fakey" ;
1918
2019 function finallyFn ( ) {
2120 return exec ( "git config --global user.name \"" + savedUserName + "\"" ) ;
2221 }
2322
24- return exec ( "git config --global user.name \"" + dummyUserName + "\" ")
23+ return exec ( "git config --global user.name" )
2524 . then ( function ( userName ) {
2625 savedUserName = userName . trim ( ) ;
2726
You can’t perform that action at this time.
0 commit comments