{"action":"created","issue":{"url":"https://api.github.com/repos/nodegit/nodegit/issues/389","labels_url":"https://api.github.com/repos/nodegit/nodegit/issues/389/labels{/name}","comments_url":"https://api.github.com/repos/nodegit/nodegit/issues/389/comments","events_url":"https://api.github.com/repos/nodegit/nodegit/issues/389/events","html_url":"https://github.com/nodegit/nodegit/issues/389","id":56595003,"number":389,"title":"Pull example doesn't fully update the index","user":{"login":"johnhaley81","id":867780,"avatar_url":"https://avatars.githubusercontent.com/u/867780?v=3","gravatar_id":"","url":"https://api.github.com/users/johnhaley81","html_url":"https://github.com/johnhaley81","followers_url":"https://api.github.com/users/johnhaley81/followers","following_url":"https://api.github.com/users/johnhaley81/following{/other_user}","gists_url":"https://api.github.com/users/johnhaley81/gists{/gist_id}","starred_url":"https://api.github.com/users/johnhaley81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnhaley81/subscriptions","organizations_url":"https://api.github.com/users/johnhaley81/orgs","repos_url":"https://api.github.com/users/johnhaley81/repos","events_url":"https://api.github.com/users/johnhaley81/events{/privacy}","received_events_url":"https://api.github.com/users/johnhaley81/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-04T22:05:53Z","updated_at":"2015-03-19T14:55:42Z","closed_at":null,"body":"Following the pull example and doing a simple fast-forward pull you'll get the inverse of what was changed in your working directory.\r\n\r\n## Repo Steps ##\r\n\r\n1) Checkout out the [pull-example-dirty-index](https://github.com/nodegit/nodegit/tree/pull-example-dirty-index) branch\r\n2) `npm install && ./test.sh && cd downstream && git status`\r\n3) Notice that there is 1 deletion. I.e. the index isn't properly updated.\r\n\r\nDoing a `nodegit.Checkout.head` doesn't update the index either.\r\n\r\n[Possibly related pygit2 stack overflow question](http://stackoverflow.com/questions/27749418/implementing-pull-with-pygit2)\r\n\r\nOriginally reported by @ubercow"},"comment":{"url":"https://api.github.com/repos/nodegit/nodegit/issues/comments/83615327","html_url":"https://github.com/nodegit/nodegit/issues/389#issuecomment-83615327","issue_url":"https://api.github.com/repos/nodegit/nodegit/issues/389","id":83615327,"user":{"login":"johnhaley81","id":867780,"avatar_url":"https://avatars.githubusercontent.com/u/867780?v=3","gravatar_id":"","url":"https://api.github.com/users/johnhaley81","html_url":"https://github.com/johnhaley81","followers_url":"https://api.github.com/users/johnhaley81/followers","following_url":"https://api.github.com/users/johnhaley81/following{/other_user}","gists_url":"https://api.github.com/users/johnhaley81/gists{/gist_id}","starred_url":"https://api.github.com/users/johnhaley81/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnhaley81/subscriptions","organizations_url":"https://api.github.com/users/johnhaley81/orgs","repos_url":"https://api.github.com/users/johnhaley81/repos","events_url":"https://api.github.com/users/johnhaley81/events{/privacy}","received_events_url":"https://api.github.com/users/johnhaley81/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T14:55:42Z","updated_at":"2015-03-19T14:55:42Z","body":"Relevant references: \r\n\r\n[checkout options](https://libgit2.github.com/libgit2/#HEAD/type/git_checkout_options)\r\n[checkout notify](https://libgit2.github.com/libgit2/#HEAD/type/git_checkout_notify_t)\r\n[checkout strategy](https://libgit2.github.com/libgit2/#HEAD/type/git_checkout_strategy_t)"}}