Skip to content

[Git] Latest master cannot make fetch-submodules #7786

Description

@bill88t

On 57ac9aa, which is current Master, I cannot make fetch-submodules.

fatal: remote error: upload-pack: not our ref 2b9354539e6e4f722749e87b0bdc22966dc080d9
fatal: Fetched in submodule path 'ports/mimxrt10xx/sdk', but it did not contain 2b9354539e6e4f722749e87b0bdc22966dc080d9. Direct fetching of that commit failed.
make: *** [Makefile:332: fetch-submodules] Error 128

Running git submodule deinit --all -f doesn't help.

Activity

  1. microdev1 commented on Mar 24, 2023

    @microdev1
    Collaborator

    Try removing it from .git directory circuitpython/.git/modules/ports/mimxrt10xx/sdk and then make fetch-submodules.

  2. bill88t commented on Mar 24, 2023

    @bill88t
    Author

    That worked, thanks, but why was that necessary. Never have I ever had to do this in the past.

  3. microdev1 commented on Mar 24, 2023

    @microdev1
    Collaborator

    That worked, thanks, but why was that necessary. Never have I ever had to do this in the past.

    It has to do with the recent change in the submodule fetch strategy ae95274.

  4. added
    supportissues that involve helping a user accomplish a task
    on Mar 24, 2023
  5. added this to the Support milestone on Mar 24, 2023
  6. dhalbert commented on Mar 24, 2023

    @dhalbert
    Collaborator

    The old way of fetching submodules did a shallow fetch, which leaves incomplete info in the .git directory. I would like to find a clean way of doing this but haven't yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    supportissues that involve helping a user accomplish a task

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions