templates / branches--on commit add_to_alternates_file: don't add duplicate entries (77b9b1d)
   1: this is just to ensure the directory exists.