summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/git.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git.sh b/include/git.sh
index 7f4b1f40..a6ce1cbf 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -141,6 +141,7 @@ git_am_patches()
)
for patches in "${patchdir}/"*; do
[ -L "${patches}" ] && continue
- [ -d "${patches}" ] && git_am_patches "${sdir}" "${patches}"
+ [ ! -d "${patches}" ] && continue
+ git_am_patches "${sdir}" "${patches}"
done
}