libgit2/libgit2 — pull request #507 by nulltoken (2011-12-04 17:12:51+00:00)
Title: tree: add test to ensure predictability of generation of object ids

Something weird occurs in LibGit2Sharp binding. The same code yields different results on Windows and Linux.

This has been narrowed down to the building of a tree.

The scenario is the following:

- A file is created and added to the index. The blob oid is ok and similar on both platforms
- The tree is then built thanks to `git_tree_create_fromindex()`. When run on Windows, the returned tree oid is different from the one returned on Linux.

This test replicates this scenario to try and troubleshoot the root cause of the issue.