Opened 22 months ago

Closed 3 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 22 months ago by mascguy (Christopher Nielsen)

Summary: git-flow: git submodule fetch fails for 10.12 and earliergit-flow: git submodule fetch fails for 10.15 and earlier

comment:2 Changed 22 months ago by mascguy (Christopher Nielsen)

Summary: git-flow: git submodule fetch fails for 10.15 and earliergit-flow: git submodule fetch fails across-the-board

comment:3 Changed 21 months ago by szhorvat (Szabolcs Horvát)

I ran into the same issue today. Perhaps because of using git:// ?

comment:4 Changed 21 months 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 21 months ago by captainproton1971 (Captain Proton)

Cc: captainproton1971 added

comment:6 Changed 21 months ago by captainproton1971 (Captain Proton)

I have the same issue too.

comment:7 Changed 21 months ago by eljakim (Eljakim Schrijvers)

Cc: eljakim added

comment:8 Changed 21 months ago by isaiah1112 (Jesse Almanrode)

Same issue for me as well! Haven't spent much time troubleshooting yet.

comment:9 Changed 21 months ago by eljakim (Eljakim Schrijvers)

comment:10 Changed 21 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:11 Changed 21 months 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 20 months 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 Changed 20 months 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.

Last edited 20 months ago by sandorspruit (Sandor Spruit) (previous) (diff)

comment:14 in reply to:  13 Changed 19 months 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 3 months ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In ecd4e3d914ef83dca4028e3d58209955b2e00016/macports-ports (master):

git-flow: Fix failure to fetch git submodules

Closes: #65473

Note: See TracTickets for help on using tickets.