diff --git a/obs/update_unstable.py b/obs/update_unstable.py index 1f91643..b1fd9e3 100755 --- a/obs/update_unstable.py +++ b/obs/update_unstable.py @@ -151,6 +151,16 @@ def update_packages(cache_file, repo_mapping_file): hash_data.save() +def commit_changes(cache_file): + + repo = git.Repo(Path.curdir()) + repo.index.add([cache_file]) + repo.index.commit("Update caches") + origin = repo.remotes["origin"] + origin.pull(rebase=True) + origin.push() + + def main(): parser = argparse.ArgumentParser()