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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Yiyi Sun
Date: Thursday, June 17, 2010 - 6:45 am

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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Fwd: git-receive-pack --stateless-rpc, Yiyi Sun, (Thu Jun 17, 6:45 am)
Re: git-receive-pack --stateless-rpc, Shawn Pearce, (Thu Jun 17, 7:00 am)
Re: git-receive-pack --stateless-rpc, Shawn O. Pearce, (Thu Jun 17, 8:25 am)