templates / branches--on commit git-clone: split up long &&-command-chain and use a function for cleanup (68ad891)
   1: this is just to ensure the directory exists.