templates / branches--on commit checkout: use add_pending_{object,sha1} in orphan check (468224e)
   1: this is just to ensure the directory exists.