mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-02 17:52:19 +00:00
Fix build error
This commit is contained in:
1 file changed
+3
-4
@@ -62,12 +62,11 @@ def main():
|
|||||||
|
|
||||||
r = open_repo(repo_path)
|
r = open_repo(repo_path)
|
||||||
if r is None:
|
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)
|
r = Repo.clone_from(url, repo_path)
|
||||||
else:
|
else:
|
||||||
logging.info(f"pulling changes for {repo} from {url}")
|
logging.info(f"repo {repo_path} exists")
|
||||||
r.remotes.origin.pull()
|
|
||||||
|
|
||||||
r.git.checkout(commit)
|
r.git.checkout(commit)
|
||||||
update_rules(repo_path, save_path, commit, matches, keep_tree)
|
update_rules(repo_path, save_path, commit, matches, keep_tree)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user