If the GIT_SUBDIR environment variable is set, do not checkout the full sources of the git repository, but perform a sparse checkout of the directory containing the package. In this case, check only the commit history in this subdirectory.