Browse Source

🐛 Fix translation script commit in place (#14818)

pull/14823/head
Sebastián Ramírez 4 months ago
committed by GitHub
parent
commit
aea61373ae
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      scripts/translate.py

3
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)

Loading…
Cancel
Save