build: delay check for empty git submodule list
commit49ad3cfa67145a71644d7832ed20c2a2b0620d15
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 30 Oct 2017 08:29:29 +0000 (30 09:29 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 6 Nov 2017 11:05:24 +0000 (6 11:05 +0000)
tree32ff7602356e43622ba7d68232a62152337caf2a
parent37b5e74e28f4b3ee93c28eb0106a65e02521f48b
build: delay check for empty git submodule list

We short circuit the git submodule update when passed an empty module list.
This accidentally causes the 'status' command to write to the status file. The
test needs to be delayed into the individual commands to avoid this premature
writing of the status file.

Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
scripts/git-submodule.sh