libgit2/libgit2 — pull request #2494 by carlosmn (2014-07-31 20:13:43+00:00)
Title: treebuilder: set the attributes before sorting and inserting

We need to set the attributes before we try to insert it into the
vector, as the comparison function needs to know whether the entry is a
tree or not.