g clone: fix non-referenced cloning
Change-Id: I98d6f5c20bacbb5d6457857906c591fea034288a
This commit is contained in:
parent
f624144e41
commit
73b50b7336
1 changed files with 6 additions and 4 deletions
10
g
10
g
|
@ -254,11 +254,13 @@ local configured
|
|||
git submodule init $module || return $?
|
||||
fi
|
||||
done
|
||||
if [ -n "$REFERENCED_GIT" ] ; then
|
||||
for module in $SUBMODULES_CONFIGURED ; do
|
||||
for module in $SUBMODULES_CONFIGURED ; do
|
||||
if [ -n "$REFERENCED_GIT" ] ; then
|
||||
git submodule update --reference $REFERENCED_GIT/.git/modules/$module $module || return $?
|
||||
done
|
||||
fi
|
||||
else
|
||||
git submodule update $module || return $?
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue