Merge pull request #2566 from libgit2/rb/attr-with-bare Fix attribute lookup in index for bare repos