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

Submodule failing to fetch unadvertised object #39

Open
cgmcintyr opened this issue Oct 20, 2019 · 1 comment
Open

Submodule failing to fetch unadvertised object #39

cgmcintyr opened this issue Oct 20, 2019 · 1 comment

Comments

@cgmcintyr
Copy link

Seems a similar problem to #34

When I run git submodule update --init -depth 1 I get the following error:

Submodule 'otp' (https://github.com/erlang/otp) registered for path 'otp'
Cloning into '/home/cgm/devel/rust/enigma/otp'...
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
error: Server does not allow request for unadvertised object 9c35d42191003d1325ad99189d7327f87c9f6fd4
Fetched in submodule path 'otp', but it did not contain 9c35d42191003d1325ad99189d7327f87c9f6fd4. Direct fetching of that commit failed.
@cgmcintyr cgmcintyr changed the title Submodule do Submodule failing to fetch unadvertised object Oct 20, 2019
@cgmcintyr
Copy link
Author

One fix for this is to change the ignore setting in .gitmodules to all:

[submodule "otp"]
	path = otp
	url = https://github.com/erlang/otp
	ignore = all

This means you have to explicitly git add otp to add submodule changes to a commit - avoiding accidentally committing a submodule change.

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

1 participant