From 8568f6ce13b5c86aff83349e83536d805c351c61 Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Mon, 4 Jan 2021 09:12:49 +0100 Subject: [PATCH] There's no Path.curdir() --- obs/update_unstable.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/obs/update_unstable.py b/obs/update_unstable.py index b1fd9e3..1cb3d7f 100755 --- a/obs/update_unstable.py +++ b/obs/update_unstable.py @@ -153,7 +153,7 @@ def update_packages(cache_file, repo_mapping_file): def commit_changes(cache_file): - repo = git.Repo(Path.curdir()) + repo = git.Repo("./") repo.index.add([cache_file]) repo.index.commit("Update caches") origin = repo.remotes["origin"] @@ -180,6 +180,10 @@ def main(): cache_file = options.cache_file update_packages(cache_file, options.mapping_file) + + logging.info("Committing changes") + commit_changes(cache_file) + logging.info("Complete")