templates / branches--on commit refs: add a new function set_worktree_head_symref (2233066)
   1: this is just to ensure the directory exists.