templates / branches--on commit clone: factor out HEAD update code (f034d35)
   1: this is just to ensure the directory exists.