@@ -50,7 +50,7 @@ func TestConfigSet(t *testing.T) {
5050 initBlankContext ("" , "OWNER/REPO" , "master" )
5151
5252 buf := bytes .NewBufferString ("" )
53- defer config .StubWriteConfig (buf )()
53+ defer config .StubWriteConfig (buf , nil )()
5454 output , err := RunCommand ("config set editor ed" )
5555 if err != nil {
5656 t .Fatalf ("error running command `config set editor ed`: %v" , err )
@@ -80,7 +80,7 @@ editor: ed
8080 initBlankContext (cfg , "OWNER/REPO" , "master" )
8181
8282 buf := bytes .NewBufferString ("" )
83- defer config .StubWriteConfig (buf )()
83+ defer config .StubWriteConfig (buf , nil )()
8484
8585 output , err := RunCommand ("config set editor vim" )
8686 if err != nil {
@@ -142,7 +142,7 @@ func TestConfigSetHost(t *testing.T) {
142142 initBlankContext ("" , "OWNER/REPO" , "master" )
143143
144144 buf := bytes .NewBufferString ("" )
145- defer config .StubWriteConfig (buf )()
145+ defer config .StubWriteConfig (buf , nil )()
146146 output , err := RunCommand ("config set -hgithub.com git_protocol ssh" )
147147 if err != nil {
148148 t .Fatalf ("error running command `config set editor ed`: %v" , err )
@@ -172,7 +172,7 @@ hosts:
172172 initBlankContext (cfg , "OWNER/REPO" , "master" )
173173
174174 buf := bytes .NewBufferString ("" )
175- defer config .StubWriteConfig (buf )()
175+ defer config .StubWriteConfig (buf , nil )()
176176
177177 output , err := RunCommand ("config set -hgithub.com git_protocol https" )
178178 if err != nil {
0 commit comments