Set a repository to be bare.
Clear the working directory and set core.bare to true. You may also
want to call git_repository_set_index(repo, NULL)
since a bare repo
typically does not have an index, but this function will not do that
for you.
0 on success, < 0 on failure