[4/4] patch: Set dummy credentials for git notes

Message ID 20240508064223.534237-5-amikan@ilbers.de
State Accepted, archived
Headers show
Series Update OE-core libs to 5.0 LTS | expand

Commit Message

Anton Mikanovich May 8, 2024, 6:42 a.m. UTC
lib/oe/patch was migrated to use git notes to store the filenames for
the patches. This requires git to be configured with some credentials.
To keep compatibility with downstreams and do not introduce any new
requirements for Isar users add some dummy value to be used internally.
This patch will probably need to be reapplied on next Bitbake update.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta/lib/oe/patch.py | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py
index 35734a0d..fcb3b5d3 100644
--- a/meta/lib/oe/patch.py
+++ b/meta/lib/oe/patch.py
@@ -468,6 +468,8 @@  class GitApplyTree(PatchTree):
         runcmd(["git", "config", "notes.rewriteMode", "ignore"], repo)
         runcmd(["git", "config", "notes.displayRef", notes_ref, notes_ref], repo)
         runcmd(["git", "config", "notes.rewriteRef", notes_ref, notes_ref], repo)
+        runcmd(["git", "config", "user.email", "isar-users@googlegroups.com"], repo)
+        runcmd(["git", "config", "user.name", "Isar"], repo)
         runcmd(["git", "notes", "--ref", notes_ref, "append", "-m", note, ref], repo)
 
     @staticmethod