HomeSoftware Heritage

post-receive hook: error encoding fixes for Python 3.

Description

post-receive hook: error encoding fixes for Python 3.

Problem:
p.communicate expects bytes in and bytes out.
When out_data is not empty, the code formatting err_msg was producing an exception.

Solution:
Formatting everything as bytes literals.

Details

Provenance
battlmonstr <battlmonstr@users.noreply.github.com>Authored on Feb 7 2020, 1:05 AM
ardumontPushed on Sep 27 2021, 5:34 PM
Parents
rPPDW80bffaca1dfe: Drop dummy file.
Branches
Unknown
Tags
Unknown

Event Timeline