git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Non-zero exit code of custom filter process is not handled

From
MFMichael Voříšek - ČVUT FJFI <vorismi3@fjfi.cvut.cz>
Date
Apr 26, 2023, 14:21 UTC
Message-ID
<a7cf2f3bbc6dcd8758e188f79d31e6e0bff44ea3e768fce482309ba532205f6b@mahalux.com>
Hello everyone,
I would like to report https://github.com/gitgitgadget/git/issues/1516 .

When a custom filter process exits with a non-zero code, the git currently tries to decode the response, even if it should fail and let the user know the problem is not the payload, but instead of the filter process.

You can reproduce this with setting a git filter to "php non-existent.php", in this case the filter (php binary) will exit with non-zero code. Currently "fatal: protocol error: bad line length character: Coul" is printed which is very hard to understand as even not the whole error string is shown.

Thank you for looking into this.
With kind regards / Mit freundlichen Grüßen / S přátelským pozdravem,

Michael Voříšek, student ČVUT FJFI

Next: Jeff King
Message 1 of 2 in “Non-zero exit code of custom filter process is not handled”
  1. Michael Voříšek - ČVUT FJFIApr 26, 2023
  2. Jeff KingApr 27, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.