templates / branches--on commit setup: set env $GIT_WORK_TREE when work tree is set, like $GIT_DIR (d95138e)
   1: this is just to ensure the directory exists.