templates / branches--on commit checkout: allow detaching to HEAD even when switching to the tip of a branch (fdc99cb)
   1: this is just to ensure the directory exists.