diff options
author | Brian Lopez <seniorlopez@gmail.com> | 2017-03-02 16:34:14 -0800 |
---|---|---|
committer | Brian Lopez <seniorlopez@gmail.com> | 2017-03-02 16:34:14 -0800 |
commit | 634dbfa0207708d39806e33b67dd3d19f9050a12 (patch) | |
tree | cc32f35f71ada19d46a680e5c9a5755c9c64f307 | |
parent | 06f2e3d0ce58d830cf561da6f6d4759b7278515f (diff) | |
download | libgit2-brianmario/attr-from-tree.tar.gz |
skip loading an index if we loaded the repo as barebrianmario/attr-from-tree
-rw-r--r-- | src/attr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attr.c b/src/attr.c index 559f5353e..a44868742 100644 --- a/src/attr.c +++ b/src/attr.c @@ -634,7 +634,7 @@ static int collect_attr_files( info.attr_session = attr_session; info.flags = flags; info.workdir = workdir; - if (git_repository_index__weakptr(&info.index, repo) < 0) + if (!repo->is_bare && git_repository_index__weakptr(&info.index, repo) < 0) giterr_clear(); /* no error even if there is no index */ info.files = files; |