From 5a182c3b498829c67800e366861751d2e5c25b92 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Tue, 21 Mar 2023 22:24:17 -0400 Subject: [PATCH] Update 'updater/git.py' --- updater/git.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/updater/git.py b/updater/git.py index 6968174..1c74b32 100644 --- a/updater/git.py +++ b/updater/git.py @@ -5,7 +5,7 @@ user_name = 'Updater Robot' user_email = 'robot@nowhere.invalid' -def add_commit(directory: str, message: str): +def add_commit_push(directory: str, message: str): diff = subprocess.run(['git', 'diff', '--cached', '--exit-code'], capture_output=True, text=True) if diff.returncode != 0: status = subprocess.run(['git', 'status'], capture_output=True, text=True) @@ -14,3 +14,4 @@ def add_commit(directory: str, message: str): subprocess.run(['git', 'add', '--all', directory], check=True) subprocess.run(['git', '-c', 'user.name={}'.format(user_name), '-c', 'user.email={}'.format(user_email), 'commit', '--message', message]) + subprocess.run(['git', 'push'])