Can a bare repository have an index? Is this a bug?
I'm trying to get GitPython 0.3 to commit a file to a repository. Roughly, I'm doing this as follows: data = ... istream = repo.odb.store(gitdb.IStream(git.Blob.type, len(data), StringIO(data))) entry = git.BaseIndexEntry((stat.S_IFREG | 0644, istream.binsha, 0, path)) index = git.IndexFile.from_tree(repo, repo.heads['master']) index.ad...