templates / remotes--on commit rename_ref: use lstat(2) when testing for symlink (16c2bfb)
   1: this is just to ensure the directory exists.