templates / branches--on commit add have_git_dir() function (d2b0708)
   1: this is just to ensure the directory exists.