diff --git a/obs/update_unstable.py b/obs/update_unstable.py index c4ed490..1fda970 100755 --- a/obs/update_unstable.py +++ b/obs/update_unstable.py @@ -12,6 +12,7 @@ from typing import Union, Dict, Any from urllib.parse import quote import git +from git.repo import Repo import requests import sarge @@ -193,7 +194,7 @@ def notify_matrix(stats: Dict[str, Dict[str, int]]) -> None: def commit_changes(cache_file: str, repo_home: str) -> None: - repo = git.Repo(repo_home) + repo = Repo(repo_home) repo.index.add([cache_file]) repo.index.commit("[OBS unstable update bot] Update caches") origin = repo.remotes["origin"]