]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🐛 Fix translation script commit in place (#14818)
authorSebastián Ramírez <tiangolo@gmail.com>
Wed, 4 Feb 2026 14:49:18 +0000 (06:49 -0800)
committerGitHub <noreply@github.com>
Wed, 4 Feb 2026 14:49:18 +0000 (15:49 +0100)
scripts/translate.py

index 9eda7b39039c1c8599416ce23b5392f55e96a4fc..072383514b5d73684f35a07c95ae7ab7112e9f34 100644 (file)
@@ -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)