git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Git Push Always uses Protocol Version 0
@ 2024-01-22  8:59 Zsolt Imre
  2024-01-22 18:52 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Zsolt Imre @ 2024-01-22  8:59 UTC (permalink / raw)
  To: git

Hi there,

I'm not entirely sure if this is a bug or I am missing something, but I thought I would share in the hope someone can help out. I'm playing around with Git and trying to implement a git server that communicates over HTTP and supports Git protocol version 2 *only*.

When I `clone` a repository, the Git client (version 2.43.0), after fetching the capabilities using protocol version 2, it proceeds to fetch the refs, again, via protocol version 2 using the `ls-refs` command.  However, when I try to `push` my changes to the repo, the Git client refuses to use protocol version 2 and tries to obtain the ref list using protocol version 0, even if I pass in the `-c protocol.version=2` command line argument.

Is there a way to make the client use only protocol version 2 instead of mixing the different protocols?

Thanks in advance for any help/guidance.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-01-22 22:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-22  8:59 Git Push Always uses Protocol Version 0 Zsolt Imre
2024-01-22 18:52 ` Junio C Hamano
2024-01-22 19:24   ` Zsolt Imre
2024-01-22 22:04     ` Jeff King

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).