merge.py corrigé #35

Merged
mdk merged 1 commits from ChristopheNan/python-docs-fr:apprend_a_compter into 3.11 2023-02-12 21:32:23 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ def parse_args():
def setup_repo(repo_path: Path, branch: str):
"""Ensure we're up-to-date."""
if branch.find('.') == 2:
if branch.find('.') == 1:
run("git", "-C", repo_path, "checkout", branch)
run("git", "-C", repo_path, "pull", "--ff-only")
else: # it's a commit