templates / branches--on commit diff-tree: read the index so attribute checks work in bare repositories (fd66bcc)
   1: this is just to ensure the directory exists.