225
225
## Generate Git repo fixtures
226
226
System . cmd ( "git" , ~w[ config --global user.email "[email protected] "] )
227
227
System . cmd ( "git" , ~w[ config --global user.name "mix-repo"] )
228
- System . cmd ( "git" , ~w[ config --global init.defaultBranch main] )
229
228
230
229
# Git repo
231
230
target = Path . expand ( "fixtures/git_repo" , __DIR__ )
@@ -242,9 +241,8 @@ unless File.dir?(target) do
242
241
System . cmd ( "git" , ~w[ init] )
243
242
System . cmd ( "git" , ~w[ add .] )
244
243
System . cmd ( "git" , ~w[ commit -m "bad"] )
245
- System . cmd ( "git" , ~w[ checkout -q -b development] )
246
- System . cmd ( "git" , ~w[ symbolic-ref HEAD refs/heads/development] )
247
- System . cmd ( "git" , ~w[ branch -d main] )
244
+ System . cmd ( "git" , ~w[ checkout -q -b main] )
245
+ System . cmd ( "git" , ~w[ symbolic-ref HEAD refs/heads/main] )
248
246
end )
249
247
250
248
File . write! ( Path . join ( target , "mix.exs" ) , """
@@ -334,6 +332,8 @@ unless File.dir?(target) do
334
332
System . cmd ( "git" , ~w[ init] )
335
333
System . cmd ( "git" , ~w[ add .] )
336
334
System . cmd ( "git" , ~w[ commit -m without-dep] )
335
+ System . cmd ( "git" , ~w[ checkout -q -b main] )
336
+ System . cmd ( "git" , ~w[ symbolic-ref HEAD refs/heads/main] )
337
337
end )
338
338
339
339
File . write! ( Path . join ( target , "mix.exs" ) , """
@@ -387,6 +387,8 @@ unless File.dir?(target) do
387
387
System . cmd ( "git" , ~w[ init] )
388
388
System . cmd ( "git" , ~w[ add .] )
389
389
System . cmd ( "git" , ~w[ commit -m "ok"] )
390
+ System . cmd ( "git" , ~w[ checkout -q -b main] )
391
+ System . cmd ( "git" , ~w[ symbolic-ref HEAD refs/heads/main] )
390
392
end )
391
393
end
392
394
0 commit comments