templates / branches--on commit builtin/commit: fix memory leak in `prepare_index()` (dd1055e)
   1: this is just to ensure the directory exists.