repository: in-memory repos are bare by default

This commit is contained in:
Edward Thomson 2015-03-10 15:02:02 -04:00
parent bdf0e73450
commit 770aca94bd

View File

@ -171,7 +171,13 @@ static git_repository *repository_alloc(void)
int git_repository_new(git_repository **out) int git_repository_new(git_repository **out)
{ {
*out = repository_alloc(); git_repository *repo;
*out = repo = repository_alloc();
GITERR_CHECK_ALLOC(repo);
repo->is_bare = 1;
return 0; return 0;
} }