summaryrefslogtreecommitdiff
path: root/include/git.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-05-22 15:57:47 +0100
committerLeah Rowe <leah@libreboot.org>2024-05-22 15:57:47 +0100
commit0014269604fb7c34f42a02e00ff40d5b64c88a83 (patch)
treed4d24ce5a1a238dea0c6b370d9b464515304c775 /include/git.sh
parentfc3b0ba8bf706e3ddb9f0826477d2d200c06c1e7 (diff)
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>
Diffstat (limited to 'include/git.sh')
-rwxr-xr-xinclude/git.sh1
1 files changed, 0 insertions, 1 deletions
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"