templates / branches--on commit pack_if_possible_fn(): use ref_type() instead of is_per_worktree_ref() (a935ebd)
   1: this is just to ensure the directory exists.