templates / branches--on commit expire_reflog(): extract two policy-related functions (c48a163)
   1: this is just to ensure the directory exists.