only commit if there are changes

This commit is contained in:
Marco Lents 2025-11-20 11:04:06 +01:00
parent 21d968fbac
commit 641dd19b8d

View file

@ -156,6 +156,9 @@ def main():
if args.no_git:
return
if repo.git.diff(name_only=True) == "":
return
repo.git.add("*")
repo.index.commit(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
origin = repo.remote(name="origin")