libgit2/libgit2 — pull request #607 by nulltoken (2012-03-21 07:19:53+00:00)
Title: test helpers: Fix file close on error

when the call to `git_futils_creat_withpath()` fails in `copy_file()` we shouldn't attempt to call `close()`.

The fix prevents an assert from failing (at least on Windows).