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.
Repo to make bare
0 on success, <0 on failure
See Implementation
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.