Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive clone fails with "Repository not found" #92

Closed
jchv opened this issue Aug 25, 2019 · 2 comments
Closed

Recursive clone fails with "Repository not found" #92

jchv opened this issue Aug 25, 2019 · 2 comments

Comments

@jchv
Copy link
Contributor

jchv commented Aug 25, 2019

Clone seems to fail due to a bad URL in .gitmodules.

john@nullptr ~/Workspaces $ git clone --recursive https://github.com/kaitai-io/kaitai_struct_webide
Cloning into 'kaitai_struct_webide'...
remote: Enumerating objects: 5603, done.
remote: Total 5603 (delta 0), reused 0 (delta 0), pack-reused 5603
Receiving objects: 100% (5603/5603), 11.38 MiB | 13.09 MiB/s, done.
Resolving deltas: 100% (4090/4090), done.
Submodule 'formats' (https://github.com/kaitai-io/kaitai_struct_formats/) registered for path 'formats'
Cloning into '/home/john/Workspaces/kaitai_struct_webide/formats'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'https://github.com/kaitai-io/kaitai_struct_formats/' into submodule path '/home/john/Workspaces/kaitai_struct_webide/formats' failed
Failed to clone 'formats'. Retry scheduled
Cloning into '/home/john/Workspaces/kaitai_struct_webide/formats'...
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'https://github.com/kaitai-io/kaitai_struct_formats/' into submodule path '/home/john/Workspaces/kaitai_struct_webide/formats' failed
Failed to clone 'formats' a second time, aborting

I resolved this issue by manually issuing

$ git clone https://github.com/kaitai-io/kaitai_struct_formats formats
$ git submodule update

The reason why it fails, is apparently the trailing slash. Perhaps this is a new-ish GitHub behavior?

@GreyCat
Copy link
Member

GreyCat commented Aug 25, 2019

Unable to repro, works for me:

$ git clone --recursive https://github.com/kaitai-io/kaitai_struct_webide
Cloning into 'kaitai_struct_webide'...
remote: Enumerating objects: 5603, done.
remote: Total 5603 (delta 0), reused 0 (delta 0), pack-reused 5603
Receiving objects: 100% (5603/5603), 11.38 MiB | 1.89 MiB/s, done.
Resolving deltas: 100% (4090/4090), done.
Submodule 'formats' (https://github.com/kaitai-io/kaitai_struct_formats/) registered for path 'formats'
Cloning into '/home/greycat/zz/t95/kaitai_struct_webide/formats'...
remote: Enumerating objects: 3079, done.        
remote: Total 3079 (delta 0), reused 0 (delta 0), pack-reused 3079        
Receiving objects: 100% (3079/3079), 744.05 KiB | 1.58 MiB/s, done.
Resolving deltas: 100% (1783/1783), done.
Submodule path 'formats': checked out '19c1fa274acd2995c9e5b81e686a0f346ffe699a'

Which git do you use?

@jchv
Copy link
Contributor Author

jchv commented Aug 25, 2019

Sigh. It was my .gitconfig.

[url "git@github.com:"]
        insteadOf = https://github.com/

Removing the slashes would be useful since this is not an uncommon pattern, but there's clearly nothing wrong with the .gitmodules file here, so closing.

@jchv jchv closed this as completed Aug 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants