From b82d49200d48814cff3b0f07ebef8a4524412b4f Mon Sep 17 00:00:00 2001 From: Tindy X <49061470+tindy2013@users.noreply.github.com> Date: Sat, 6 Apr 2024 19:04:51 +0800 Subject: [PATCH] Fix update_rules checkout branch --- scripts/update_rules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update_rules.py b/scripts/update_rules.py index dbf27c26a..eaa236aa4 100644 --- a/scripts/update_rules.py +++ b/scripts/update_rules.py @@ -73,7 +73,7 @@ def main(): r.git.checkout(commit) elif branch is not None: logging.info(f"checking out to branch {branch}") - r.branches[branch].checkout() + r.git.checkout(branch) else: logging.info(f"checking out to default branch") r.active_branch.checkout()