alloc doesn't take a refdb; git_refdb_free nicely in the tests