templates / branches--on commit Improve abstraction of ref lock/write. (4bd18c4)
   1: this is just to ensure the directory exists.