Backport v2020 <- v2022pre lava: Reduce overlays size by dropping git history
Backport !86 (merged) which applies the approach used in tests/apertis-test-cases!337 (merged) to reduce overlay size by dropping git history.
Signed-off-by: Walter Lozano walter.lozano@collabora.com