Following the pull example and doing a simple fast-forward pull you'll get the inverse of what was changed in your working directory.
Repo Steps
- Checkout out the pull-example-dirty-index branch
npm install && ./test.sh && cd downstream && git status
- Notice that there is 1 deletion. I.e. the index isn't properly updated.
Doing a nodegit.Checkout.head doesn't update the index either.
Possibly related pygit2 stack overflow question
Originally reported by @ubercow
Following the pull example and doing a simple fast-forward pull you'll get the inverse of what was changed in your working directory.
Repo Steps
npm install && ./test.sh && cd downstream && git statusDoing a
nodegit.Checkout.headdoesn't update the index either.Possibly related pygit2 stack overflow question
Originally reported by @ubercow