templates / branches--on commit prefix_ref_iterator: don't trim too much (b9c8e7f)
   1: this is just to ensure the directory exists.