mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 10:17:20 +00:00
allow opening index in bare repo
The git.git implementation allows this, and there is no reason not to.
This commit is contained in:
parent
599f2849ba
commit
e459253815
@ -348,9 +348,6 @@ int git_repository_index__weakptr(git_index **out, git_repository *repo)
|
||||
{
|
||||
assert(out && repo);
|
||||
|
||||
if (repo->is_bare)
|
||||
return git__throw(GIT_EBAREINDEX, "Cannot open index in bare repository");
|
||||
|
||||
if (repo->_index == NULL) {
|
||||
int error;
|
||||
git_buf index_path = GIT_BUF_INIT;
|
||||
|
Loading…
Reference in New Issue
Block a user