libgit2/pygit2 — pull request #404 by mduggan (2014-08-18 09:29:22+00:00)
Title: Remote refcount fix

Fix the refcounts in remotes (issue #403) by setting the callbacks just before fetch, and resetting to defaults after. I *think* I got it right, but I'm not super-familiar with cffi so let me know if I did something stupid.

I also added a few tests to look for refcount leaks after accessing various properties.