Fwd: git-receive-pack --stateless-rpc
- From
- Yiyi 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