From: Sebastián Ramírez Date: Wed, 4 Feb 2026 14:49:18 +0000 (-0800) Subject: 🐛 Fix translation script commit in place (#14818) X-Git-Tag: 0.128.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aea61373ae0c97b32611fc2dc993e84a9729edf8;p=thirdparty%2Ffastapi%2Ffastapi.git 🐛 Fix translation script commit in place (#14818) --- diff --git a/scripts/translate.py b/scripts/translate.py index 9eda7b390..072383514 100644 --- a/scripts/translate.py +++ b/scripts/translate.py @@ -411,7 +411,8 @@ def make_pr( print(f"Creating a new branch {branch_name}") subprocess.run(["git", "checkout", "-b", branch_name], check=True) else: - print(f"Committing in place on branch {current_branch}") + branch_name = current_branch + print(f"Committing in place on branch {branch_name}") print("Adding updated files") git_path = Path("docs") subprocess.run(["git", "add", str(git_path)], check=True)