1 parent 6598630 commit c71a118Copy full SHA for c71a118
1 file changed
tests/testthat/test-commit.R
@@ -276,6 +276,7 @@ test_that("git_log shows commits from merged branches", {
276
writeLines("initial content", file.path(repo, "main.txt"))
277
git_add("main.txt", repo = repo)
278
git_commit("Initial commit on main", repo = repo)
279
+ main <- git_branch(repo)
280
281
writeLines("second content", file.path(repo, "main2.txt"))
282
git_add("main2.txt", repo = repo)
@@ -300,7 +301,7 @@ test_that("git_log shows commits from merged branches", {
300
301
git_add("feature3.txt", repo = repo)
302
git_commit("Third commit on feature branch", repo = repo)
303
- git_branch_switch("main", repo = repo)
304
+ git_branch_switch(main, repo = repo)
305
git_merge("feature", repo = repo)
306
307
log <- git_log(repo = repo)
0 commit comments