Fix update_rules checkout branch

This commit is contained in:
Tindy X 2024-04-06 19:04:51 +08:00
parent 40ba3fd970
commit b82d49200d
No known key found for this signature in database
GPG Key ID: 7FA1E66774759718

View File

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