Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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)