Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

0.5.0.0: Could not fetch submodules #1030

Closed
unclechu opened this issue Jan 7, 2019 · 5 comments
Closed

0.5.0.0: Could not fetch submodules #1030

unclechu opened this issue Jan 7, 2019 · 5 comments
Milestone

Comments

@unclechu
Copy link

unclechu commented Jan 7, 2019

λ git branch
* (HEAD detached at 0.5.0.0)
  master
λ git submodule update
Submodule path 'submodules/HaRe': checked out '53979f062bebcaa132390d1fd0cec74a51662952'
error: Server does not allow request for unadvertised object 6c187da8f8166d595f36d6aaf419370283b3d1e9
Fetched in submodule path 'submodules/brittany', but it did not contain 6c187da8f8166d595f36d6aaf419370283b3d1e9. Direct fetching of that commit failed.
@lukel97
Copy link
Collaborator

lukel97 commented Jan 7, 2019

Try git submodule sync --recursive before doing git submodule update

@unclechu
Copy link
Author

unclechu commented Jan 7, 2019

It is some force-pusher's job? I just checkout brittany to master branch manually and make build-all is succeeded.

@lukel97
Copy link
Collaborator

lukel97 commented Jan 7, 2019

I'm not sure if anyone force-pushed, 6c187da8f8166d595f36d6aaf419370283b3d1e9 is the correct hash for the current commit. The remote did change recently though which is probably what threw it off:
870e7c9#diff-8903239df476d7401cf9e76af0252622

@lukel97 lukel97 closed this as completed Jan 7, 2019
@unclechu
Copy link
Author

unclechu commented Jan 7, 2019

I just did fresh --recursive clone of a repo and this went okay. I'm not sure what kind of this issue is. @bubba May be git submodule sync --recursive supposed to be added to Makefile or something? To avoid such issues in the future, since it make build-all is failing, and it does git submodule update which fails, I just pulled fresh 0.5.0.0 branch in existing repo.

@lukel97
Copy link
Collaborator

lukel97 commented Jan 7, 2019

@unclechu looks like the Makefile already had a step to sync the submodules but it didn't use --recursive. Thanks for spotting this, I've created a PR for it: #1032

@alanz alanz added this to the 2019-01 milestone Feb 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants