checkout: omit checking for tags in submodules

Signed-off-by: flatcar-ci <infra+ci@flatcar-linux.org>
This commit is contained in:
flatcar-ci 2022-01-10 15:23:25 +01:00
parent a2ae11cb3d
commit fa090f839e

View File

@ -104,6 +104,13 @@ function check_all() {
local scripts="$(git $gitcmd \ local scripts="$(git $gitcmd \
| sed -e 's/^[[:space:]]*//' -e 's:remotes/[^/]\+/::' \ | sed -e 's/^[[:space:]]*//' -e 's:remotes/[^/]\+/::' \
| grep -m1 -E "^$name\$")" | grep -m1 -E "^$name\$")"
# tag has submodules pinned, no need to check
if [[ "${gitcmd}" =~ ^tag\ .* ]] ; then
echo "${scripts}"
return
fi
local overlay="$(git -C sdk_container/src/third_party/coreos-overlay $gitcmd \ local overlay="$(git -C sdk_container/src/third_party/coreos-overlay $gitcmd \
| sed -e 's/^[[:space:]]*//' -e 's:remotes/[^/]\+/::' \ | sed -e 's/^[[:space:]]*//' -e 's:remotes/[^/]\+/::' \
| grep -m1 -E "^$name\$")" | grep -m1 -E "^$name\$")"