repository: clarify assignment and test order
index: fix potential memory leaks
pack: fix memory leak in error path
Fix some more memory leaks in error path
Add `git_remote_owner`
Merge pull request #1729 from tiennou/remote-owner

Add `git_remote_owner`.
Merge pull request #1728 from ivoire/small_fixes

Small fixes