From fa090f839e2a0d1c09aa823633b0ecfeb8cad802 Mon Sep 17 00:00:00 2001 From: flatcar-ci Date: Mon, 10 Jan 2022 15:23:25 +0100 Subject: [PATCH] checkout: omit checking for tags in submodules Signed-off-by: flatcar-ci --- checkout | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/checkout b/checkout index 43f5274773..5a18a255b6 100755 --- a/checkout +++ b/checkout @@ -104,6 +104,13 @@ function check_all() { local scripts="$(git $gitcmd \ | sed -e 's/^[[:space:]]*//' -e 's:remotes/[^/]\+/::' \ | 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 \ | sed -e 's/^[[:space:]]*//' -e 's:remotes/[^/]\+/::' \ | grep -m1 -E "^$name\$")"