templates / branches--on commit upload-pack: replace use of several hard-coded constants (55dc227)
   1: this is just to ensure the directory exists.