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

Fwd: git-receive-pack --stateless-rpc

From
YSYiyi Sun <yiyisun@gmail.com>
Date
Jun 17, 2010, 13:45 UTC
Message-ID
<AANLkTikbUp7_22alAbgNFO30R7vkPUAOr7qvJ6a86Zc7@mail.gmail.com>
In-Reply-To
<AANLkTikwu4iKnG-DzclRPFNF7djNKZ31xR82aO0ryVJ3@mail.gmail.com>
Hi,

I am creating a Git smart HTTP protocol wrapper and run into two problem. I tried the msysGit mailing list and was told to ask them to the main git mailing list.

Here is the story. During 'git push',  I successfully processed the initial GET request of '/info/refs?service=git-receive-pack' by sending back the output of 'git receive-pack --stateless-rpc --advertise-refs'. Then msysGit did a the POST request. I invoked 'git receive-pack --stateless-rpc', which returned:

0030 000eunpack ok 0019ok refs/heads/master 00000000

Question #1, Is the result supposed to be something below instead?

000eunpack ok 0019ok refs/heads/master 0000

Question #2, msysGit cannot parse the result, it displays error message:

fatal: protocol error: bad line length character: 003 fatal: The remote end hung up unexpectedly

It seems that msysGit can read the http response of HTTP GET, but not of HTTP POST.

Can you please help ?
Thanks,
yysun
Next: Shawn Pearce
Message 1 of 3 in “Fwd: git-receive-pack --stateless-rpc”
  1. Yiyi SunJun 17, 2010
  2. Shawn PearceJun 17, 2010
  3. Shawn O. PearceJun 17, 2010

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.