Skip to content

git clone hangs #2145

@mk0x9

Description

@mk0x9

When using git clone with github's user/repo format it expands to git://github.com/user/repo.git and git hangs indefinitely:

$ GIT_TRACE=1 git clone github/hub
11:36:26.288215 exec-cmd.c:139          trace: resolved executable path from Darwin stack: /Applications/Xcode.app/Contents/Developer/usr/bin/git
11:36:26.288683 exec-cmd.c:236          trace: resolved executable dir: /Applications/Xcode.app/Contents/Developer/usr/bin
11:36:26.288751 git.c:418               trace: built-in: git clone git://github.com/github/hub.git
Cloning into 'hub'...
^C

Is it possible to expand it to git@github.com:user/repo.git?

$ GIT_TRACE=1 git clone git@github.com:github/hub.git
11:36:49.269936 exec-cmd.c:139          trace: resolved executable path from Darwin stack: /Applications/Xcode.app/Contents/Developer/usr/bin/git
11:36:49.270427 exec-cmd.c:236          trace: resolved executable dir: /Applications/Xcode.app/Contents/Developer/usr/bin
11:36:49.270497 git.c:418               trace: built-in: git clone git@github.com:github/hub.git
Cloning into 'hub'...
11:36:49.281851 run-command.c:643       trace: run_command: unset GIT_DIR; ssh git@github.com 'git-upload-pack '\''github/hub.git'\'''
11:36:50.679794 run-command.c:643       trace: run_command: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 6366 on bln23020716.local' --check-self-contained-and-connected
remote: Enumerating objects: 33, done.
remote: Counting objects: 100% (33/33), done.
11:36:50.692600 exec-cmd.c:139          trace: resolved executable path from Darwin stack: /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git
remote: Compressing objects: 100% (29/29), done.
11:36:50.693297 exec-cmd.c:236          trace: resolved executable dir: /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core
11:36:50.693899 git.c:418               trace: built-in: git index-pack --stdin -v --fix-thin '--keep=fetch-pack 6366 on bln23020716.local' --check-self-contained-and-connected
remote: Total 17558 (delta 2), reused 15 (delta 1), pack-reused 17525
Receiving objects: 100% (17558/17558), 5.37 MiB | 9.00 MiB/s, done.
Resolving deltas: 100% (11318/11318), done.
11:36:51.371004 run-command.c:643       trace: run_command: git rev-list --objects --stdin --not --all --quiet '--progress=Checking connectivity'
11:36:51.373115 exec-cmd.c:139          trace: resolved executable path from Darwin stack: /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git
11:36:51.373528 exec-cmd.c:236          trace: resolved executable dir: /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core
11:36:51.373870 git.c:418               trace: built-in: git rev-list --objects --stdin --not --all --quiet '--progress=Checking connectivity'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions