'3.11'.find('.')

This commit is contained in:
Christophe Nanteuil 2023-02-12 22:08:59 +01:00
parent be3fe26412
commit 6ef1dad1e6
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