diff options
| author | Clemens Buchacher <drizzd@aon.at> | 2011-12-29 13:12:51 +0100 |
|---|---|---|
| committer | Clemens Buchacher <drizzd@aon.at> | 2011-12-30 20:14:05 +0100 |
| commit | e459253815086d6563d359f480d867557598dabf (patch) | |
| tree | a3c4fdda36d99a4f59f59a44359c44ab8de26900 /src/repository.c | |
| parent | 599f2849bad898c5dfd212e0629f79783f75b700 (diff) | |
| download | libgit2-e459253815086d6563d359f480d867557598dabf.tar.gz | |
allow opening index in bare repo
The git.git implementation allows this, and there is no reason not
to.
Diffstat (limited to 'src/repository.c')
| -rw-r--r-- | src/repository.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/repository.c b/src/repository.c index 67afa2ee2..f87e4d88b 100644 --- a/src/repository.c +++ b/src/repository.c @@ -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; |
