summaryrefslogtreecommitdiff
path: root/src/repository.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2012-01-02 09:58:39 +0100
committerVicent Martí <tanoku@gmail.com>2012-01-02 09:58:39 +0100
commit7a704309ae012b8e92eb6103b0d14dd3c22a1cb5 (patch)
treea0e917d553db5fc4475be2fff7004268dc36d13d /src/repository.c
parent9191a6d2466d0f3c187a66f65757c95c1c3f772d (diff)
parent0fb3fba123d8fbd99a9e1f9f47c192c704daee24 (diff)
downloadlibgit2-7a704309ae012b8e92eb6103b0d14dd3c22a1cb5.tar.gz
Merge remote-tracking branch 'drizzd/diff-index-tests' into development
Conflicts: tests-clay/clay.h tests-clay/clay_main.c
Diffstat (limited to 'src/repository.c')
-rw-r--r--src/repository.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/repository.c b/src/repository.c
index a94ecce55..a408599f7 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -349,9 +349,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;