From 6ef1dad1e6dfa996d854f66c7e9059990f08e78f Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil Date: Sun, 12 Feb 2023 22:08:59 +0100 Subject: [PATCH] '3.11'.find('.') --- merge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/merge.py b/merge.py index acea8914..6cc9f608 100644 --- a/merge.py +++ b/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