templates / branches--on commit resolve_ref_unsafe(): ensure flags is always set (a70a93b)
   1: this is just to ensure the directory exists.