git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hampton Moore <hamptonm@usc.edu>
To: git@vger.kernel.org
Subject: Git remote return custom error messages
Date: Sun, 27 Sep 2020 18:26:56 -0400	[thread overview]
Message-ID: <CAOefx6Ro6ixiccDq_xH-UsjNWTcjKy=YQfCs7b0ZQkLjSb-0zQ@mail.gmail.com> (raw)

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

             reply	other threads:[~2020-09-27 22:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-27 22:26 Hampton Moore [this message]
2020-09-27 23:28 ` Git remote return custom error messages brian m. carlson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOefx6Ro6ixiccDq_xH-UsjNWTcjKy=YQfCs7b0ZQkLjSb-0zQ@mail.gmail.com' \
    --to=hamptonm@usc.edu \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).