contrib: AMF: improve sparse checkout
git sparse-checkout was only added in 2.25 (2020) [1]. Older git (1.7+) can handle a sparse checkout setting the .git/info/sparse-checkout data.
We also clone with --filter=blob:none --no-checkout which downloads less from the host.