version_generation: second try at fixing git
This time we set a custom writable existing home directory to store the git configuration before setting it, and then we use that home when using git.
Note that using the -c setting=value
option does not work for the
safe.directory (I was not able to make it work at least).
Bug: T354350 Signed-off-by: David Caro dcaro@wikimedia.org