Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commits() fails for detached head #233

Open
krlmlr opened this issue May 10, 2016 · 2 comments
Open

commits() fails for detached head #233

krlmlr opened this issue May 10, 2016 · 2 comments

Comments

@krlmlr
Copy link
Contributor

krlmlr commented May 10, 2016

git checkout HEAD~0
Rscript -e "git2r::commits()"
# Error in (function (classes, fdef, mtable)  : 
#   unable to find an inherited method for function ‘branch_target’ for signature ‘"git_commit"’
@krlmlr
Copy link
Contributor Author

krlmlr commented May 10, 2016

Not in the dev version.

@krlmlr krlmlr closed this as completed May 10, 2016
@krlmlr
Copy link
Contributor Author

krlmlr commented May 10, 2016

Sorry: I can reproduce in both dev and released versions, but only for a specific repo:

git clone --depth=50 --branch=feature/dtplyr2 https://github.com/krlmlr/dplyr.git krlmlr/dplyr
git checkout -qf b504e90e86619a6b0178821afbd7343059c21595
Rscript -e "git2r::commits()"

Tried a few different settings (other repo, other branch, ...). Could the slash in the branch name trigger this behavior?

@krlmlr krlmlr reopened this May 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant