templates / branches--on commit commit_ref(): if there is an empty dir in the way, delete it (5387c0d)
   1: this is just to ensure the directory exists.