templates / branches--on commit implement some resilience against pack corruptions (8eca0b4)
   1: this is just to ensure the directory exists.