+ case "${distroversion:-}" in
+ el*)
+ git clone -b "${ktag}" "${kgitrepo}" src/linux-rpm
+
+ # Get the source files
+ pushd src/linux-rpm
+ "${WORKSPACE}/src/getsrc/getsrc/getsrc.sh"
+ tar -x -C "${LINUX_GIT_DIR}" --strip-components=1 -f SOURCES/linux-*.tar.xz
+ popd
+
+ # Pretend we're a repo like the default expects
+ pushd "${LINUX_GIT_DIR}"
+ git init .
+ git config user.name 'Jenkins'
+ git config user.email 'jenkins@efficios.com'
+ git add .
+ git commit -a -m 'Initial commit'
+ git tag "${ktag}"
+ echo "${LINUX_GIT_REF_REPO_DIR}" > .git/objects/info/alternates
+ popd
+ ;;
+
+ *)
+ git clone --depth=1 -b "${ktag}" --reference-if-able "$LINUX_GIT_REF_REPO_DIR" "${kgitrepo}" "$LINUX_GIT_DIR"
+ ;;
+ esac