templates / branches--on commit grep: re-order rev-parsing loop (20d6421)
   1: this is just to ensure the directory exists.