git: Make submodule check only needed modules
If one is compiling more than one tree from the same source, it is possible that they need different submodules. Change the check to see that all modules that we are interested in are updated, discarding the ones that we don't care about. Signed-off-by: Juan Quintela <quintela@redhat.com> --- v1->v2: patchw insists in not using modules
This commit is contained in:
parent
e022d47388
commit
1a920d2b63
@ -59,10 +59,14 @@ status)
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
test -f "$substat" || exit 1
|
test -f "$substat" || exit 1
|
||||||
CURSTATUS=$($GIT submodule status $modules)
|
for module in $modules; do
|
||||||
OLDSTATUS=$(cat $substat)
|
CURSTATUS=$($GIT submodule status $module)
|
||||||
test "$CURSTATUS" = "$OLDSTATUS"
|
OLDSTATUS=$(cat $substat | grep $module)
|
||||||
exit $?
|
if test "$CURSTATUS" != "$OLDSTATUS"; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
exit 0
|
||||||
;;
|
;;
|
||||||
update)
|
update)
|
||||||
if test -z "$maybe_modules"
|
if test -z "$maybe_modules"
|
||||||
|
Loading…
Reference in New Issue
Block a user