@@ -282,17 +282,19 @@ test_that("git_log shows commits from merged branches", {
282282 git_add(" main2.txt" , repo = repo )
283283 git_commit(" Second commit on main" , repo = repo )
284284
285- writeLines(" third content" , file.path(repo , " main3.txt" ))
286- git_add(" main3.txt" , repo = repo )
287- git_commit(" Third commit on main" , repo = repo )
288-
289285 git_branch_create(" feature" , repo = repo )
290286 git_branch_switch(" feature" , repo = repo )
291287
292288 writeLines(" feature content 1" , file.path(repo , " feature1.txt" ))
293289 git_add(" feature1.txt" , repo = repo )
294290 git_commit(" First commit on feature branch" , repo = repo )
295291
292+ git_branch_switch(main , repo = repo )
293+ writeLines(" third content" , file.path(repo , " main3.txt" ))
294+ git_add(" main3.txt" , repo = repo )
295+ git_commit(" Third commit on main" , repo = repo )
296+ git_branch_switch(" feature" , repo = repo )
297+
296298 writeLines(" feature content 2" , file.path(repo , " feature2.txt" ))
297299 git_add(" feature2.txt" , repo = repo )
298300 git_commit(" Second commit on feature branch" , repo = repo )
0 commit comments