From 877cb4a03efeea04738d334639a46d60f415abf1 Mon Sep 17 00:00:00 2001 From: Calvin Kirs Date: Thu, 24 Oct 2024 18:09:03 +0800 Subject: [PATCH] Update auto-pick-script.py (#26) --- tools/auto-pick-script.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/auto-pick-script.py b/tools/auto-pick-script.py index a9717946491b54..2908361c2b7c1a 100644 --- a/tools/auto-pick-script.py +++ b/tools/auto-pick-script.py @@ -44,6 +44,11 @@ repo_dir = REPO_NAME.split("/")[-1] # Get the directory name subprocess.run(["git", "checkout", new_branch_name], cwd=repo_dir) +# Set Git user identity for commits +subprocess.run(["git", "config", "user.email", "your-email@example.com"], cwd=repo_dir) +subprocess.run(["git", "config", "user.name", "Your Name"], cwd=repo_dir) + + # Execute the cherry-pick operation try: result = subprocess.run(["git", "cherry-pick", merge_commit_sha], cwd=repo_dir, check=True)