From 19f694bf2a332557fb733b34de002a7d36ffe6de Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 22 May 2024 15:57:47 +0100 Subject: [PATCH] git.sh: remove another meaningless check again, the directory in question is simply used in a for loop using asterisk (git_am_patches) and the for loop simply won't iterate if either the directory doesn't exist or it contains no items. Signed-off-by: Leah Rowe --- include/git.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/include/git.sh b/include/git.sh index b130b6c..cc99676 100755 --- a/include/git.sh +++ b/include/git.sh @@ -126,7 +126,6 @@ patch_submodules() { mdir="${PWD}/config/submodule/$project" [ -n "$tree" ] && mdir="$mdir/$tree" - [ -d "$mdir" ] || return 0 git -C "$tmpgit" submodule status | awk '{print $2}' > \ "$tmpdir/modules" || $err "$mdir: cannot list submodules"