What does “upload-pack: not our ref” mean, when fetching git refs via –tags?

I had the same error: radato$ git submodule update fatal: git upload-pack: not our ref somehash0 fatal: remote error: upload-pack: not our ref somehash0 fatal: Fetched in submodule path ‘dashboard’, but it did not contain somehash0. Direct fetching of that commit failed. So I deinitialized the submodule: radato$ git submodule deinit -f dashboard Cleared directory … Read more

How to fix a permission denied (publickey) error for a git submodule update in the Github Travis CI build?

This can (thankfully) be easily solved by modifying the .gitmodules file on-the-fly on Travis, so that the SSH URL is replaced with the public URL, before initializing submodules. To accomplish this, add the following to .travis.yml: # Handle git submodules yourself git: submodules: false # Use sed to replace the SSH URL with the public … Read more

Changing an existing submodule’s branch

Go into the directory where the submodule resides and git checkout the correct branch/commit. Then go up one level and git add and git commit the directory. This will check in the submodule with the correct commit. And don’t forget to run git submodule update –recursive on the other clients after updating them.

Git nested submodules and dependencies

You just discovered the lack of overridden dependencies with Git submodules: If Super depends on Core, its dependency of Core should “override” the ones A and B have with Core. The only way to emulate that would be to create your Super project the way you did, and to remove the sub-module Core of A … Read more

git submodule modified files status

The way that the status of git submodules is reported has changed a lot over recent versions of git, so you should really include the output of git –version as well for us to be able to help accurately. However, in any case, the output of git diff example.com/soundmanager should tell you more. If you … Read more