[blob] add git_blob_create_frombuffer test
[repository] improve codes