forked from JOJ/Joint-Teapot
		
	feat: skip commit & push on nothing changed
This commit is contained in:
		
							parent
							
								
									cc9cb3224c
								
							
						
					
					
						commit
						9d4d4eb7fe
					
				|  | @ -114,6 +114,6 @@ class Git: | |||
|                     f'File path "{file}" does not exist. Skipping this file.' | ||||
|                 ) | ||||
|                 continue | ||||
|         repo.index.commit(commit_message) | ||||
|         origin = repo.remote(name="origin") | ||||
|         origin.push() | ||||
|         if repo.is_dirty(untracked_files=True) or repo.index.diff(None): | ||||
|             repo.index.commit(commit_message) | ||||
|             repo.remote(name="origin").push() | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user