'Sends a pkt-line to the remote git process.
:param line: A string containing the data to send, without the length
prefix.'

def write_pkt_line(self, line):

    try:
        line = pkt_line(line)
        self.write(line)
        if self.report_activity:
            self.report_activity(len(line), 'write')
    except socket.error as e:
        raise GitProtocolError(e)
