There's no Path.curdir()
This commit is contained in:
parent
d4d0209623
commit
8568f6ce13
1 changed files with 5 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue