[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 6/6] git: Make submodule check only needed modules
From: |
Juan Quintela |
Subject: |
[PULL 6/6] git: Make submodule check only needed modules |
Date: |
Thu, 13 Feb 2020 14:20:30 +0100 |
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 <address@hidden>
---
v1->v2:
patchw insists in not using modules
---
scripts/git-submodule.sh | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/scripts/git-submodule.sh b/scripts/git-submodule.sh
index 98ca0f2737..65ed877aef 100755
--- a/scripts/git-submodule.sh
+++ b/scripts/git-submodule.sh
@@ -59,10 +59,14 @@ status)
fi
test -f "$substat" || exit 1
- CURSTATUS=$($GIT submodule status $modules)
- OLDSTATUS=$(cat $substat)
- test "$CURSTATUS" = "$OLDSTATUS"
- exit $?
+ for module in $modules; do
+ CURSTATUS=$($GIT submodule status $module)
+ OLDSTATUS=$(cat $substat | grep $module)
+ if test "$CURSTATUS" != "$OLDSTATUS"; then
+ exit 1
+ fi
+ done
+ exit 0
;;
update)
if test -z "$maybe_modules"
--
2.24.1
- [PULL 0/6] Pull migration patches, Juan Quintela, 2020/02/13
- [PULL 1/6] migration: Maybe VM is paused when migration is cancelled, Juan Quintela, 2020/02/13
- [PULL 2/6] migration: Optimization about wait-unplug migration state, Juan Quintela, 2020/02/13
- [PULL 3/6] migration/rdma: rdma_accept_incoming_migration fix error handling, Juan Quintela, 2020/02/13
- [PULL 4/6] tests/migration: Add some slack to auto converge, Juan Quintela, 2020/02/13
- [PULL 5/6] migration-test: fix some memleaks in migration-test, Juan Quintela, 2020/02/13
- [PULL 6/6] git: Make submodule check only needed modules,
Juan Quintela <=
- Re: [PULL 0/6] Pull migration patches, Peter Maydell, 2020/02/14