Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
tindy2013 committed Nov 7, 2023
1 parent d8075aa commit f99748b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/update_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ def main():

r = open_repo(repo_path)
if r is None:
logging.info(f"cloning {url} to {repo_path}")
logging.info(f"cloning repo {url} to {repo_path}")
r = Repo.clone_from(url, repo_path)
else:
logging.info(f"pulling changes for {repo} from {url}")
r.remotes.origin.pull()

logging.info(f"repo {repo_path} exists")

r.git.checkout(commit)
update_rules(repo_path, save_path, commit, matches, keep_tree)

Expand Down

0 comments on commit f99748b

Please sign in to comment.