build: don't create temporary files in source dir
commit96089f6d0e88446a16725f2152d252be34f1ad50
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 26 Oct 2017 12:45:38 +0000 (26 13:45 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 6 Nov 2017 11:04:30 +0000 (6 11:04 +0000)
tree160825f0c3f6db4d4a88c97248d18c78984bd40b
parentcc84d63a42e31c2afa884fc78610a65ab8ecc06a
build: don't create temporary files in source dir

There are cases where users do VPATH builds with the source directory being on
a read-only volume. In such a case they have to manually run the command
'git-submodule.sh ...modules...' ahead of time. When checking for status we
should not then write into the source dir.

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