-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mbed-tools deploy is limiting the git fetch specification #211
Comments
Hmm, I'm not sure this is really an issue for Mbed CE, because Mbed CE uses submodules the normal way instead of using the mbed-tools command. However, Mbed CE still does use shallow submodules, so I suppose that something similar to this is still happening. The reason we use them is, it trims ~640MB of git history for the mbed-os submodule down to ~88MB, making each project folder significantly smaller. If you check here on the wiki, I put the steps to "unshallow" the mbed-os submodule. Following those steps will update it so that you can access all the Mbed branches normally, at the cost of ~500MB additional hard drive space. |
I think for a new development it can be desirable to know what branches exist and to browse the history with Sourcetree or whatever else which gives more functionality than just looking into github. This ticket was before my knowledge that the Mbed arm was dead. I agree to make a 'unshallow' topic to make poeple aware of it. |
so do you think that the unshallow page should be moved somewhere else? |
It's a good place but I would change the title to make it more clear. |
If you did the unshallow procedure, do you have to set shallow back to false in .gitmodules also? |
Is the unshallow procedure interfering with:
in .gitmodules? |
When you use just
After call
Opposite boolean in the command above will cause opposite settings in .gitmodules. |
I think if you did the procedure to convert the mbed os submodule that you also have to update the .gitmodules with git config -f .gitmodules submodule.mbed-os.shallow false otherwise when you do a git submodule update this will be reverted. |
Ok, i will look on that. |
You right @lefebvresam the shallow state in the .gitmodules remains same after the whole procedure. Anyway the history is not reverted back to the master only when i use |
Description of defect
When checking out a project with "mbed-tools deploy", the [remote "origin"] section in the config file of the git project checked out is limiting the fetch specification for remote branches.
cat .git/config [remote "origin"] section shows
should be:
If you then do "git fetch" you will be able to see the remote branches with "git branch -a".
Resolve temporary with:
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
There is another issue where the CLI2 "mbed-tools deploy". The repo is not checked out fully. I have seen that the history is not complete if you compare with a native GIT clone.
Target(s) affected by this defect ?
The command "mbed-tools deploy"
Toolchain(s) (name and version) displaying this defect ?
Using docker session:
docker run -it --privileged --mount=type=bind,source="$(pwd)",destination=/var/mbed -w /var/mbed -v /dev/disk/by-id:/dev/disk/by-id -v /dev/serial/by-id:/dev/serial/by-id -v /run/udev:/run/udev:ro ghcr.io/armmbed/mbed-os-env:master-latest
What version of Mbed-os are you using (tag or sha) ?
Mbed 1.10.5
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
CLI 2
How is this defect reproduced ?
Clone a GIT project containing remote branches with CLI 2 command "mbed-tools deploy" from source *.lib.
The text was updated successfully, but these errors were encountered: