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

Re: Meaning of "fatal: protocol error: bad line length character"?

From
Bill Lear <rael@zopyra.com>
Date
Jan 22, 2007, 22:16 UTC
Message-ID
<17845.14245.559835.112658@lisa.zopyra.com>
In-Reply-To
<17845.5805.290668.552757@lisa.zopyra.com>
On Monday, January 22, 2007 at 13:55:25 (-0600) Bill Lear writes:
Show 7 quoted lines
>...
>>The attached patch on the local side (i.e. the one that pushes)
>>dumps "garbage" you are getting on the line from the remote
>>side, to help diagnosing the problem. ...
>
>I have asked the developer to install this and hopefully we'll
>get some feedback soon.
Looks like it is our developer's fault after all.  
% git push
[...]
Unpacking 7 objects
 100% (7/7) done
error: protocol error: bad line length character
<<<<<
Unknown command: "#alias"
refs/heads/tau_mt_1: 0a5a7ac9b81a90500b9c9c44a22793890513cd5a -> 3d0c74c15953ad5bc6a71eefa623933163c4f05f
[...]
The problem is that his mailer is putting out: 
    Unknown command: "#alias"

when it gets to the mail command at the bottom of the update hook. So, he's got a bad line in his .mailrc file.

I do think that some augmentation of the error output is in order, either as previously posted, or something fancier. It would be even better if this sort of thing did not trip up git, though perhaps I don't understand enough of how the update hook and git interact.

Bill
Previous: Bill LearNext: Junio C Hamano
Message 13 of 17 in “Meaning of "fatal: protocol error: bad line length character"?”
  1. Bill LearJan 20, 2007
  2. Junio C HamanoJan 20, 2007
  3. Junio C HamanoJan 20, 2007
  4. Bill LearJan 20, 2007
  5. Jakub NarebskiJan 20, 2007
  6. Junio C HamanoJan 20, 2007
  7. Junio C HamanoJan 20, 2007
  8. Shawn O. PearceJan 20, 2007
  9. Junio C HamanoJan 22, 2007
  10. Bill LearJan 22, 2007
  11. Junio C HamanoJan 22, 2007
  12. Bill LearJan 22, 2007
  13. Bill LearJan 22, 2007
  14. Junio C HamanoJan 22, 2007
  15. Han-Wen NienhuysJan 23, 2007
  16. Junio C HamanoJan 23, 2007
  17. Han-Wen NienhuysJan 23, 2007

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.