mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 20:29:27 +00:00
repository: in-memory repos are bare by default
This commit is contained in:
parent
bdf0e73450
commit
770aca94bd
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user