1
0
Fork 0

There's no Path.curdir()

This commit is contained in:
Luca Beltrame 2021-01-04 09:12:49 +01:00
parent d4d0209623
commit 8568f6ce13
Signed by: einar
GPG key ID: 4707F46E9EC72DEC

View file

@ -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")