git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "Bezdeka, Florian" <florian.bezdeka@siemens.com>
To: "git@vger.kernel.org" <git@vger.kernel.org>
Cc: "gitster@pobox.com" <gitster@pobox.com>,
	"greg.pflaum@pnp-hcl.com" <greg.pflaum@pnp-hcl.com>,
	"peff@peff.net" <peff@peff.net>
Subject: Bug: Cloning git repositories behind a proxy using the git:// protocol broken since 2.32
Date: Tue, 31 Jan 2023 10:52:47 +0000	[thread overview]
Message-ID: <4831bbeb0ec29ec84f92e0badfc0d628ecc6921d.camel@siemens.com> (raw)

Hi all,

I just updated from git 2.30.2 (from Debian 11) to 2.39.0 (from Debian
testing) and realized that I can no longer clone repositories using the
git:// protocol.

There is one specialty in my setup: I'm located behind a proxy, so
GIT_PROXY_COMMAND is set. I'm usiung the oe-git-proxy script [1] here.
My environment provides the http_proxy variable and privoxy [2] is
running on the server side. That information should be sufficient to
reproduce.

I tried the following two repositories for testing:
 - git clone git://git.code.sf.net/p/linuxptp/code linuxptp
 - git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

The result is:
Cloning into 'linuxptp'...
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

I was able to "git bisect" it to the following commit:
ae1a7eefffe6 ("fetch-pack: signal v2 server that we are done making requests")

Reverting this commit on top of the master branch fixes my issue.
All people involved in this commit should be in CC.

Looking at the TCP byte stream shows that the socket is closed after
the client received the first "part" of the packfile.

...
0032want ec3f28a0ac13df805278164f2c72e69676d13134
0032want 57caf5d94876e8329be65d2dc29d3c528b149724
0009done
0000000dpackfile

Let me know if you need further information. Hopefully this was the
correct way of submitting a bug to git...

Best regards,
Florian

[1] https://wiki.yoctoproject.org/wiki/Working_Behind_a_Network_Proxy
[2] https://www.privoxy.org/



             reply	other threads:[~2023-01-31 10:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-31 10:52 Bezdeka, Florian [this message]
2023-01-31 11:02 ` Bug: Cloning git repositories behind a proxy using the git:// protocol broken since 2.32 brian m. carlson
2023-01-31 12:08   ` Florian Bezdeka
2023-01-31 16:57     ` Junio C Hamano
2023-01-31 20:31     ` Jacob Keller
2023-01-31 23:19       ` Florian Bezdeka
2023-02-01 12:28         ` Jeff King
2023-02-01 12:53           ` Florian Bezdeka
2023-02-01 13:05             ` Bezdeka, Florian
2023-02-02  0:07             ` Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4831bbeb0ec29ec84f92e0badfc0d628ecc6921d.camel@siemens.com \
    --to=florian.bezdeka@siemens.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=greg.pflaum@pnp-hcl.com \
    --cc=peff@peff.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).