templates / branches--on commit upload-pack: Improve error message when bad ref requested (9f9aa76)
   1: this is just to ensure the directory exists.