From b5fda00a8b1fef293777fa51e2f6915e80338745 Mon Sep 17 00:00:00 2001 From: yparitcher Date: Thu, 27 Apr 2023 09:45:28 -0400 Subject: [PATCH] kodev check: enforce default submodule.recurse=false for shellcheck & shfmt on submodules (#10362) Otherwise results might be unexpected for people who set submodule.recurse to true Regression of sorts since #10344 --- kodev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kodev b/kodev index 185bac242..1a8befffb 100755 --- a/kodev +++ b/kodev @@ -994,7 +994,7 @@ function kodev-check() { check_submodules # shellcheck disable=2016 - mapfile -t shellscript_locations < <({ git grep -lE '^#!(/usr)?/bin/(env )?(bash|sh)' | sed "/^plugins\/terminal.koplugin\/shfm$/d" && git submodule --quiet foreach '[ "$path" = "base" -o "$path" = "platform/android/luajit-launcher" ] || git grep -lE "^#!(/usr)?/bin/(env )?(bash|sh)" | sed "s|^|$path/|"' && git ls-files ./*.sh; } | sort | uniq) + mapfile -t shellscript_locations < <({ git -c submodule.recurse=0 grep -lE '^#!(/usr)?/bin/(env )?(bash|sh)' | sed "/^plugins\/terminal.koplugin\/shfm$/d" && git submodule --quiet foreach '[ "$path" = "base" -o "$path" = "platform/android/luajit-launcher" ] || git grep -lE "^#!(/usr)?/bin/(env )?(bash|sh)" | sed "s|^|$path/|"' && git ls-files ./*.sh; } | sort | uniq) SHFMT_OPTIONS="-i 4 -ci"