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 <leah@libreboot.org>
20240612_branch
Leah Rowe 2024-05-22 15:57:47 +01:00
parent fc3b0ba8bf
commit 0014269604
1 changed files with 0 additions and 1 deletions

View File

@ -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"