diff-tree: read the index so attribute checks work in bare repositories