forked from AFPy/python-docs-fr
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:
parent
c45606574a
commit
26ccd93ef1
2
merge.py
2
merge.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user