Git remote return custom error messages
- From
- Hampton 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