8000 merge.py corrigé (#35) · python/python-docs-fr@26ccd93 · GitHub
[go: up one dir, main page]

Skip to content

Commit 26ccd93

Browse files
Christophe NanteuilchristopheNan
authored andcommitted
merge.py corrigé (#35)
'3.11'.find('.') Co-authored-by: Christophe Nanteuil <christophe.nanteuil@gmail.com> Reviewed-on: https://git.afpy.org/AFPy/python-docs-fr/pulls/35 Reviewed-by: Julien Palard <julien@palard.fr> Co-authored-by: Christophe Nanteuil <christophenan@noreply.localhost> Co-committed-by: Christophe Nanteuil <christophenan@noreply.localhost>
1 parent c456065 commit 26ccd93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def parse_args():
3838

3939
def setup_repo(repo_path: Path, branch: str):
4040
"""Ensure we're up-to-date."""
41-
if branch.find('.') == 2:
41+
if branch.find('.') == 1:
4242
run("git", "-C", repo_path, "checkout", branch)
4343
run("git", "-C", repo_path, "pull", "--ff-only")
4444
else: # it's a commit

0 commit comments

Comments
 (0)
0