Opened 2 years ago
Closed 10 months ago
#65473 closed defect (fixed)
git-flow: git submodule fetch fails across-the-board
Reported by: | mascguy (Christopher Nielsen) | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.2 |
Keywords: | Cc: | captainproton1971 (Captain Proton), eljakim (Eljakim Schrijvers), cooljeanius (Eric Gallager) | |
Port: | git-flow |
Description
Git fetch fails due to timeout:
DEBUG: system -W /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_git-flow/git-flow/work/gitflow-0.4.1: git submodule update --init Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags' Cloning into '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_git-flow/git-flow/work/gitflow-0.4.1/shFlags'... fatal: unable to connect to github.com: github.com[0: 140.82.112.3]: errno=Operation timed out fatal: clone of 'git://github.com/nvie/shFlags.git' into submodule path '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_git-flow/git-flow/work/gitflow-0.4.1/shFlags' failed Failed to clone 'shFlags'. Retry scheduled Cloning into '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_git-flow/git-flow/work/gitflow-0.4.1/shFlags'... fatal: unable to connect to github.com: github.com[0: 140.82.113.3]: errno=Operation timed out fatal: clone of 'git://github.com/nvie/shFlags.git' into submodule path '/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_git-flow/git-flow/work/gitflow-0.4.1/shFlags' failed Failed to clone 'shFlags' a second time, aborting Command failed: git submodule update --init Exit code: 1
Change History (15)
comment:1 Changed 2 years ago by mascguy (Christopher Nielsen)
Summary: | git-flow: git submodule fetch fails for 10.12 and earlier → git-flow: git submodule fetch fails for 10.15 and earlier |
---|
comment:2 Changed 2 years ago by mascguy (Christopher Nielsen)
Summary: | git-flow: git submodule fetch fails for 10.15 and earlier → git-flow: git submodule fetch fails across-the-board |
---|
comment:3 Changed 2 years ago by szhorvat (Szabolcs Horvát)
comment:4 Changed 2 years ago by eljakim (Eljakim Schrijvers)
I suddenly have the same issue as well. No changes were made on our infrastructure; I am not using any proxies.
comment:5 Changed 2 years ago by captainproton1971 (Captain Proton)
Cc: | captainproton1971 added |
---|
comment:7 Changed 2 years ago by eljakim (Eljakim Schrijvers)
Cc: | eljakim added |
---|
comment:8 Changed 2 years ago by isaiah1112 (Jesse Almanrode)
Same issue for me as well! Haven't spent much time troubleshooting yet.
comment:9 Changed 2 years ago by eljakim (Eljakim Schrijvers)
I have found the underlying issue:
https://github.blog/2021-09-01-improving-git-protocol-security-github/#no-more-unauthenticated-git
The git:// protocol is no longer supported by GitHub.
So https://github.com/nvie/gitflow/blob/develop/.gitmodules should refer to https:// instead of git://
comment:10 Changed 2 years ago by cooljeanius (Eric Gallager)
Cc: | cooljeanius added |
---|
comment:11 Changed 2 years ago by eljakim (Eljakim Schrijvers)
I have tried doing this first:
git config --global url."https://".insteadOf "git://"
but that appears not to work for sub modules.
If anybody has a solution?
comment:12 Changed 2 years ago by sandorspruit (Sandor Spruit)
Arriving late to the party, but the same problem here. The github repo seems to suggest the required change has already been done earlier, but reverted?
comment:13 follow-up: 14 Changed 2 years ago by sandorspruit (Sandor Spruit)
Might wanna check out this webpage: https://github.com/petervanderdoes/gitflow-avh. Apparently, the git flow implementation referenced on macports as "git-flow" is very old and no longer supported by many tools (JetBrains IDEA and friends). No experimenting with the other one through Home-brew.
comment:14 Changed 2 years ago by cooljeanius (Eric Gallager)
Replying to sandorspruit:
Might wanna check out this webpage: https://github.com/petervanderdoes/gitflow-avh
There's actually a separate port for that
comment:15 Changed 10 months ago by ryandesign (Ryan Carsten Schmidt)
Owner: | set to ryandesign |
---|---|
Resolution: | → fixed |
Status: | new → closed |
I ran into the same issue today. Perhaps because of using
git://
?