From 641dd19b8de0de5108cfe00627d7c22ca51f1bf8 Mon Sep 17 00:00:00 2001 From: Marco Lents Date: Thu, 20 Nov 2025 11:04:06 +0100 Subject: [PATCH] only commit if there are changes --- crawler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crawler.py b/crawler.py index 8d328d2..6074fa8 100644 --- a/crawler.py +++ b/crawler.py @@ -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")