From 0014269604fb7c34f42a02e00ff40d5b64c88a83 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 22 May 2024 15:57:47 +0100 Subject: 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(-) (limited to 'include') diff --git a/include/git.sh b/include/git.sh index 686eb496..04119cae 100755 --- a/include/git.sh +++ b/include/git.sh @@ -121,7 +121,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" -- cgit v1.2.1