Bug 2013288

Summary: git clone git://gcc.gnu.org/git/gcc.git doesn't work before a firewall
Product: [Fedora] Fedora Reporter: H.J. Lu <hongjiu.lu>
Component: gitAssignee: Todd Zullinger <tmz>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 35CC: amahdal, besser82, chrisw, johannes, opohorel, pstodulk, sebastian.kisela, tmz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-12 21:45:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description H.J. Lu 2021-10-12 14:05:30 UTC
I am behind a firewall and using gitproxy:

exec socat - socks4:proxy-server-name:$1:$2

I got

$ git clone git://gcc.gnu.org/git/gcc.git 
Cloning into 'gcc'...
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
$

Both

$ git clone --depth 1 git://gcc.gnu.org/git/gcc.git

and

$ git clone https://gcc.gnu.org/git/gcc.git

work.

I have no problem on Fedora 34.

Comment 1 Todd Zullinger 2021-10-12 15:19:23 UTC
This is almost surely going to have to end up on the git list... but you might try to use:

    git -c protocol.version=1 clone git://gcc.gnu.org/git/gcc.git

to see if that has an effect.

The release notes mention a fix to fetching which affects the v2 protocol:

    https://github.com/git/git/commit/ae1a7eefff

Either way, I would suggest bringing this up on the git list as that's where the folks most likely to know the problem will be found.

Comment 2 H.J. Lu 2021-10-12 19:59:18 UTC
$ git -c protocol.version=1 clone git://gcc.gnu.org/git/gcc.git

works.

Comment 3 H.J. Lu 2021-10-12 20:00:45 UTC
git 2.33.0 fails and git 2.32.0 works.

Comment 4 H.J. Lu 2021-10-12 21:42:12 UTC
"socat -t 10" also works.