merge.py corrigé (#35)

'3.11'.find('.')

Co-authored-by: Christophe Nanteuil <christophe.nanteuil@gmail.com>
Reviewed-on: AFPy/python-docs-fr#35
Reviewed-by: Julien Palard <julien@palard.fr>
Co-authored-by: Christophe Nanteuil <christophenan@noreply.localhost>
Co-committed-by: Christophe Nanteuil <christophenan@noreply.localhost>
This commit is contained in:
Christophe Nanteuil 2023-02-12 21:32:23 +00:00 committed by Julien Palard
parent c45606574a
commit 26ccd93ef1
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