templates / branches--on commit write_head_info(): handle "extra refs" locally (85f2510)
   1: this is just to ensure the directory exists.