summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinclude/git.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/git.sh b/include/git.sh
index 26720757..cd4d788f 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -115,8 +115,8 @@ git_prep()
prep_submodules()
{
- [ ! -f "$tmpgit/.gitmodules" ] || git -C "$tmpgit" submodule \
- update --init --checkout || $err "git_prep $1: !submod"
+ [ -f "$tmpgit/.gitmodules" ] || return 0
+ git -C "$tmpgit" submodule update --init --checkout || $err "$1: !mod"
mdir="${PWD}/config/submodule/$project"
[ -n "$tree" ] && mdir="$mdir/$tree"