From 0d0821239cb33ef31c8890bde28763aab83c93d5 Mon Sep 17 00:00:00 2001 From: jonnybravo Date: Sun, 3 Sep 2023 17:55:39 +0200 Subject: [PATCH] commit message from python script --- check_and_add_pull_git/pull_and_push.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_and_add_pull_git/pull_and_push.py b/check_and_add_pull_git/pull_and_push.py index 95e6ef5..526c292 100644 --- a/check_and_add_pull_git/pull_and_push.py +++ b/check_and_add_pull_git/pull_and_push.py @@ -24,13 +24,13 @@ class my_git(): if not repo.is_dirty(untracked_files=True): print('No Changes detected in Folder', git_folder, sep=" ") else: - print("Changes detected.") + print("Changes detected in Folder", git_folder, sep=" ") for remote in repo.remotes: - print(remote.name, remote.url) repo.git.add('--all') repo.git.commit('-m', 'commit message from python script') remote_name = repo.remote(name=remote.name) remote_name.push() + print("Push to", remote.url, sep=" ") def git_main(self): list_git_folder = my_git.check_folder(self)