Skip to content

Commit c71a118

Browse files
committed
fix
1 parent 6598630 commit c71a118

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/testthat/test-commit.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ test_that("git_log shows commits from merged branches", {
276276
writeLines("initial content", file.path(repo, "main.txt"))
277277
git_add("main.txt", repo = repo)
278278
git_commit("Initial commit on main", repo = repo)
279+
main <- git_branch(repo)
279280

280281
writeLines("second content", file.path(repo, "main2.txt"))
281282
git_add("main2.txt", repo = repo)
@@ -300,7 +301,7 @@ test_that("git_log shows commits from merged branches", {
300301
git_add("feature3.txt", repo = repo)
301302
git_commit("Third commit on feature branch", repo = repo)
302303

303-
git_branch_switch("main", repo = repo)
304+
git_branch_switch(main, repo = repo)
304305
git_merge("feature", repo = repo)
305306

306307
log <- git_log(repo = repo)

0 commit comments

Comments
 (0)