diff options
Diffstat (limited to 'src/attr.c')
-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; |