Skip to content

Commit 8db6fc1

Browse files
committed
Specify branch name for the fake repo
1 parent edf5ba7 commit 8db6fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/fake_repo.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
fake_repo <- function(path = tempfile(pattern = "git2r-"), as.package = FALSE) {
2121
if (!dir.exists(path)) {dir.create(path)}
22-
repo <- init(path)
22+
repo <- init(path, branch = "master")
2323

2424
## Config user
2525
config(repo, user.name = "Alice", user.email = "[email protected]")

0 commit comments

Comments
 (0)