templates / branches--on commit read_index_from(): catch out of order entries when reading an index file (15999d0)
   1: this is just to ensure the directory exists.