ipbus / ipbb

IPbus Builder Tool
GNU General Public License v3.0
12 stars 12 forks source link

Set depth when adding git repository #191

Closed DavidMonk00 closed 8 months ago

DavidMonk00 commented 9 months ago

Would it be possible to add a --depth flag to ipbb add git?

There are some repositories, for example gbt-fpga, which is necessary to instantiate LGBT links in EMP, have some very large files in the git history. If git clone is ran manually with --depth 1, then these files are not downloaded, saving disk space and time.

I would propose either adding a flag to the command to set the depth, or by default to clone repositories with the depth set to 1 as I feel that this would be the most common use of the command.