mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
Merge pull request #211 from flatcar-linux/t-lo/checkout-imgrove-tag-handling
checkout: omit checking for tags in submodules
This commit is contained in:
commit
bf053ed800
7
checkout
7
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\$")"
|
||||
|
Loading…
x
Reference in New Issue
Block a user