Merge pull request #2736 from cgwalters/submodule-rhel8

make-git-snapshot: Always run `git submodule init`
This commit is contained in:
Colin Walters 2022-10-11 14:35:49 -04:00 committed by GitHub
commit 00b173d088
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,9 +11,7 @@ PKG_VER="${name}-${version}"
TARFILE=${PKG_VER}.tar
TARFILE_TMP=${TARFILE}.tmp
if ! test -f ${TOP}/libglnx/README.md || ! test -f ${TOP}/bsdiff/README.md; then
git submodule update --init
fi
git submodule update --init
echo "Archiving ${PKG_VER} at ${GITREV} to ${TARFILE_TMP}"
(cd ${TOP}; git archive --format=tar --prefix=${PKG_VER}/ ${GITREV}) > ${TARFILE_TMP}