libgit2/libgit2 — pull request #783 by nulltoken (2012-06-21 22:06:08+00:00)
Title: Repo reinit fix + enhanced test coverage

**Enhanced test coverage:**
Add a test which ensures that `core.filemode` gets reset to the platform capabilities when a repository is reinitialized.

**Repo reinit fix:**
Fixes an issue which has been discovered while trying to understand why the test was *refusing* to pass.

`core.filemode` was indeed reset and the configuration was updated on disk. However, a previous version of the configuration had already been loaded in memory and attached to the repo. Basically, this was making the repository unaware of the change.