Commit e4592538 by Clemens Buchacher

allow opening index in bare repo

The git.git implementation allows this, and there is no reason not
to.
parent 599f2849
......@@ -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;
......
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