Keep a strong reference to the repository.

Under the covers, libgit2 could try to access the git_diff’s
repository, so we need to ensure that it stays alive as long as we are.
Merge pull request #341 from libgit2/fix-diff-repo

Give GTDiff a strong ref to its repository