@@ -186,7 +186,7 @@ func TestRepoFork_outside_yes(t *testing.T) {
186186 eq (t , output .Stderr (), "" )
187187
188188 eq (t , strings .Join (cs .Calls [0 ].Args , " " ), "git clone https://github.com/someone/repo.git" )
189- eq (t , strings .Join (cs .Calls [1 ].Args , " " ), "git -C repo remote add upstream https://github.com/OWNER/REPO.git" )
189+ eq (t , strings .Join (cs .Calls [1 ].Args , " " ), "git -C repo remote add -f upstream https://github.com/OWNER/REPO.git" )
190190
191191 test .ExpectLines (t , output .String (),
192192 "Created fork someone/REPO" ,
@@ -219,7 +219,7 @@ func TestRepoFork_outside_survey_yes(t *testing.T) {
219219 eq (t , output .Stderr (), "" )
220220
221221 eq (t , strings .Join (cs .Calls [0 ].Args , " " ), "git clone https://github.com/someone/repo.git" )
222- eq (t , strings .Join (cs .Calls [1 ].Args , " " ), "git -C repo remote add upstream https://github.com/OWNER/REPO.git" )
222+ eq (t , strings .Join (cs .Calls [1 ].Args , " " ), "git -C repo remote add -f upstream https://github.com/OWNER/REPO.git" )
223223
224224 test .ExpectLines (t , output .String (),
225225 "Created fork someone/REPO" ,
@@ -484,7 +484,7 @@ func TestRepoClone_hasParent(t *testing.T) {
484484 }
485485
486486 eq (t , cs .Count , 2 )
487- eq (t , strings .Join (cs .Calls [1 ].Args , " " ), "git -C REPO remote add upstream https://github.com/hubot/ORIG.git" )
487+ eq (t , strings .Join (cs .Calls [1 ].Args , " " ), "git -C REPO remote add -f upstream https://github.com/hubot/ORIG.git" )
488488}
489489
490490func TestRepoCreate (t * testing.T ) {
0 commit comments