checkout index on a new git repository return GIT_EORPHANEDHEAD error #1236

Closed
alexqdh opened this Issue Jan 12, 2013 · 3 comments

Comments

Projects
None yet
2 participants

alexqdh commented Jan 12, 2013

I use libgit2 and call git_checkout_index on a new git repository,but it return GIT_EORPHANEDHEAD(-9) error. It runs ok with Git ("git checkout-index"). Related StackOverflow question

alexqdh commented Jan 12, 2013

Thank you, nulltoken. I have added the question link.

Member

nulltoken commented Jan 12, 2013

I've created a test that reproduces the issue.

Member

nulltoken commented Jan 12, 2013

nulltoken closed this in 2a3b3e0 Jan 15, 2013

@phatblat phatblat pushed a commit to phatblat/libgit2 that referenced this issue Sep 13, 2014

@nulltoken nulltoken checkout: Teach checkout to cope with orphaned Head
Fix #1236
2f03a63
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment