diff options
author | Peter Hoyes <Peter.Hoyes@arm.com> | 2023-06-16 13:36:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-27 15:28:56 +0100 |
commit | 8b0fc4850dc31bb7e7be0001414468b1d3f80846 (patch) | |
tree | ac11c4c538f578e219297344c9dfea52f87d568b /.templateconf | |
parent | baf345598d147fa798e4b1dd20992f8bed0a5c0e (diff) | |
download | poky-8b0fc4850dc31bb7e7be0001414468b1d3f80846.tar.gz |
bitbake: bitbake: tests/fetch: Set git config if not already set
git config returns an error code if user.email or user.name are not set,
so bb.process.run raises an ExecutionError, failing the test.
Improve the logic by catching the ExectionError and using this to set a
default value.
Change a direct invocation of 'git init' to use self.git_init so that
it follows the code path above.
Remove the related comment from the README now that git sets up the user
details automatically.
(Bitbake rev: 0c7079d0609a13713b890a9675abd9fba032f199)
Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to '.templateconf')
0 files changed, 0 insertions, 0 deletions