olofk / fusesoc

Package manager and build abstraction tool for FPGA/ASIC development
BSD 2-Clause "Simplified" License
1.14k stars 235 forks source link

Some remotes do not support shallow clones #606

Closed GCHQDeveloper137 closed 1 year ago

GCHQDeveloper137 commented 1 year ago

I've recently upgraded to v2.0, and most things are working a charm. One thing has stopped me in my tracks, though, and that's that one of our remote git repos does not support shallow clones. Fusesoc 2 seems to attempt a shallow clone regardless for git, which means any cores that point to remote repositories with the git provider that do not support shallow cloning fail.

The idea of the shallow clone is definitely a good one, particularly for larger repos. I'll submit a simple patch that is working for me that tries to do a shallow clone, but if that fails falls back to trying without.

olofk commented 1 year ago

This should be fixed now with #607