--- Some background ---
I am running multiple docker containers on my server, each of them does git fetch on startup. The purpose is to update an in-docker repository (from github), since its state may be old, depending on the last time the docker image was built.
I tried an optimization to save internet throughput:
- Update a local repository on the host machine (from github).
- Then on each docker
git remote set-url origin user@host_machine:/path/to/host/local/repo; git fetch
It turns out however that some updates are missing on the docker repositories. Tried it without docker, happens as well.
--- End of background ---
Here is what I'm doing:
- Clone a repository from github to local repo A.
- Clone local repo A to another local repo B.
- Update some commits on github.
Git fetchon local repo A.Git fetchon local repo B.
At the end, some commits are found on A but not on B. (git log on origin/master shows different HEAD between A and B).