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

Git remote return custom error messages

From
HMHampton Moore <hamptonm@usc.edu>
Date
Sep 27, 2020, 22:26 UTC
Message-ID
<CAOefx6Ro6ixiccDq_xH-UsjNWTcjKy=YQfCs7b0ZQkLjSb-0zQ@mail.gmail.com>

Hello, I have a custom ssh server that is handling validating users permissions, is there a way for me to return custom text back to the git client that's running push and pull? When I just send an error like "NOT A DOMAIN" through STOUT the git client displays "fatal: protocol error: bad line length character: NOT". I looked and could not find any obvious documentation on how I could do this, or if it would even be possible. Does anyone have any ideas?

Thank you, Hampton Moore

Next: brian m. carlson
Message 1 of 2 in “Git remote return custom error messages”
  1. Hampton MooreSep 27, 2020
  2. brian m. carlsonSep 27, 2020

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.