Ardupilot Submodule issue

Hi,

I have checked out the master branch:
Commit d6a5d316257c297a7617c2ceea31181a766af65f (HEAD → master, origin/master, origin/HEAD)

And then have included the submodules but get this error:

fatal: remote error: upload-pack: not our ref 8fb1b18ab3250695d85fe2943dfc68e8b45024b7
fatal: the remote end hung up unexpectedly
Fetched in submodule path ‘modules/DroneCAN/libcanard/dsdl_compiler/pyuavcan’, but it did not contain 8fb1b18ab3250695d85fe2943dfc68e8b45024b7. Direct fetching of that commit failed.

I am not really sure if this is me or something wrong with the repo.

kind regards
M

git submodule update --init --recursive

Hi @amilcarlucas

Thanks for your reply.

This is what I have done:

git reset --hard
git status
git submodule deinit -f .
git submodule update --init --recursive

The problem is still the same.

“fatal: remote error: upload-pack: not our ref 8fb1b18ab3250695d85fe2943dfc68e8b45024b7
fatal: the remote end hung up unexpectedly”

Cheers
M

Is that the latest master commit?

@amilcarlucas hi , yes it is.

tried this:

cd modules/
git submodule update --init --recursive
git submodule foreach --recursive git reset --hard
git submodule update --remote

and get this:

Submodule path ‘modules/DroneCAN/dronecan_dsdlc’: checked out ‘01586259d5a8b11f9c4a034a976f886630ae4fb7’
Submodule path ‘modules/DroneCAN/libcanard’: checked out ‘aec8028798e8485851644e85093c50b1bd6e8ade’
Submodule path ‘modules/DroneCAN/pydronecan’: checked out ‘ed2bdbdd17b003558f0b52b7042dbd818aaaa28c’
remote: Enumerating objects: 705, done.
remote: Counting objects: 100% (332/332), done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 705 (delta 279), reused 309 (delta 265), pack-reused 373
Receiving objects: 100% (705/705), 307.64 KiB | 3.94 MiB/s, done.
Resolving deltas: 100% (464/464), completed with 107 local objects.
From GitHub - google/benchmark: A microbenchmark support library

  • 3b3de69…62edc4f main → origin/main*
    • [new branch] rm_dir → origin/rm_dir*
    • [new tag] v1.6.1 → v1.6.1*
    • [new tag] v1.6.2 → v1.6.2*
    • [new tag] v1.7.0 → v1.7.0*
    • [new tag] v1.7.1 → v1.7.1*
      Submodule path ‘modules/gbenchmark’: checked out ‘e991355c02b93fe17713efe04cbc2e278e00fdbd’
      Submodule path ‘modules/gtest’: checked out ‘13206d6f53aaff844f2d3595a01ac83a29e383db’
      Submodule path ‘modules/mavlink’: checked out ‘00595499491838675dde810b8cfb9a56e779f693’
      fatal: Needed a single revision
      Unable to find current origin/master revision in submodule path ‘modules/uavcan’

@amilcarlucas so what I did now was to rename the “modules” folder in .git to “modules_” and then updated the submodules. this seems to have fixed it.

Nice. I’m glad you found a workaround, and documented it here for other users. Thanks.