From 5a08c4ea0c5f315a56e52b73e32d7911a8a139a7 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Sat, 15 Jan 2022 09:00:54 +0100 Subject: [PATCH] Adjustment for typed hints --- obs/update_unstable.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"]