templates / remotes--on commit get_shallow_commits: Avoid memory leak if a commit has been reached already. (d64d6c9)
   1: this is just to ensure the directory exists.