templates / branches--on commit refs: handle zero oid for pseudorefs (db0210d)
   1: this is just to ensure the directory exists.