def _write_log_raw(repo, log): """Overwrite the landinglog with the string 'log'. :repo: a callable supporting git commands, e.g. repo("status") :log: the new string contents of the landinglog :returns: None """ sha1 = phlgit_hashobject.write_string(repo, log) repo('update-ref', _LOCAL_LANDINGLOG_REF, sha1)
def _write_log_raw(repo, log): """Overwrite the landinglog with the string 'log'. :repo: a callable supporting git commands, e.g. repo("status") :log: the new string contents of the landinglog :returns: None """ sha1 = phlgit_hashobject.write_string(repo, log) repo("update-ref", _LOCAL_LANDINGLOG_REF, sha1)
def _write_log_raw(clone, log): """Overwrite the landinglog with the string 'log'. :clone: supports clone.call() for interacting with git :log: the new string contents of the landinglog :returns: None """ sha1 = phlgit_hashobject.write_string(clone, log) clone.call('update-ref', _LOCAL_LANDINGLOG_REF, sha1)