ropensci / git2r

R bindings to the libgit2 library
https://docs.ropensci.org/git2r
GNU General Public License v2.0
215 stars 58 forks source link

Test failure with libgit2 1.1.0 #430

Closed jeroen closed 3 years ago

jeroen commented 3 years ago
* checking tests ...
  Running ‘add-force.R’
  Running ‘bare_repository.R’
  Running ‘blame.R’
  Running ‘blob.R’
  Running ‘branch.R’
  Running ‘bundle.R’
  Running ‘checkout-named-branch.R’
 ERROR
Running the tests in ‘tests/checkout-named-branch.R’ failed.
Last 13 lines of output:
  > checkout(repo_2, "dev")
  >
  > ## Check content of file
  > stopifnot(identical(
  +     c("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do",
  +       "eiusmod tempor incididunt ut labore et dolore magna aliqua."),
  +     readLines(file.path(path_repo_2, "test.txt"))))
  >
  > ## Checkout previous branch
  > checkout(repo_2, "-")
  Error in vapply(branch, Negate(is.na), logical(1)) :
    values must be length 1,
   but FUN(X[[4]]) result is length 0
  Calls: checkout -> previous_branch_name -> vapply
  Execution halted
* checking PDF version of manual ... OK
* DONE
stewid commented 3 years ago

Thanks for reporting the test failure.

jeroen commented 3 years ago

Actually maybe you had already fixed this? I am seeing this problem only for the current CRAN version, but not with the github version.

stewid commented 3 years ago

I didn't know about the problem, but I fixed it this weekend. So I plan to submit to CRAN this week.