commit message from python script
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user