diff mbox series

[patchtest] core-image-patchtest: Add safe git directories

Message ID 20230524194405.3345812-1-tgamblin@baylibre.com
State New
Headers show
Series [patchtest] core-image-patchtest: Add safe git directories | expand

Commit Message

Trevor Gamblin May 24, 2023, 7:44 p.m. UTC
patchtest's method of mounting a shared directory into the guest image
means that the associated content may not be owned by the image's user.
Add /home/patchtest/openembedded-core and
/home/patchtest/openembedded-core/bitbake to the patchtest user's
.gitconfig so that it can still run tests if the provided repo is owned
by someone else.

Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
---
 meta-patchtest/recipes-core/images/core-image-patchtest.bb | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta-patchtest/recipes-core/images/core-image-patchtest.bb b/meta-patchtest/recipes-core/images/core-image-patchtest.bb
index 47e4041..4aa768c 100644
--- a/meta-patchtest/recipes-core/images/core-image-patchtest.bb
+++ b/meta-patchtest/recipes-core/images/core-image-patchtest.bb
@@ -43,6 +43,9 @@  EOF
 [user]
     name = patchtest
     email = patchtest@patchtest.com
+[safe]
+    directory = /home/patchtest/openembedded-core
+    directory = /home/patchtest/openembedded-core/bitbake
 EOF
 
 }