libgit2/libgit2 — pull request #2368 by kitbellew (2014-05-18 15:10:41+00:00)
Title: Fix mkstemp open flags.

@carlosmn: make sure that the temporary file is truncated.