Commit 770aca94 by Edward Thomson

repository: in-memory repos are bare by default

parent bdf0e734
...@@ -171,7 +171,13 @@ static git_repository *repository_alloc(void) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment