templates / branches--on commit pathspec.c: use the right index instead of the_index (d17ef3a)
   1: this is just to ensure the directory exists.