You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Repository::commit` needs to be called, otherwise the index gets goofed up.
In my specific case, it resulted in a file created in a fetched commit being staged for deletion.
https://libgit2.org/libgit2/ex/HEAD/merge.html was referenced for this fix.
I also added a call to `Repository::cleanup_state` that was used in the libgit2 example. They did not call `Repository::checkout_head` so I've removed that.
0 commit comments