Add sparse checkout like behavior for git source fetching.