templates / branches--on commit update-index --split-index: do not split if $GIT_DIR is read only (a0a9675)
   1: this is just to ensure the directory exists.