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()