From 64c75f9b1f2ad79df50cf16f72481626fdc3cab4 Mon Sep 17 00:00:00 2001 From: Marco Lents Date: Mon, 13 Apr 2026 22:51:01 +0200 Subject: [PATCH] fix: stage files before checking for changes Previously git diff checked unstaged changes, so new untracked files (like the new Abstimmungen/ directory) would not trigger a commit. Now stages first, then checks the staged diff. Co-Authored-By: Claude Opus 4.6 (1M context) --- crawler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crawler.py b/crawler.py index 28db45c..69fa8fe 100644 --- a/crawler.py +++ b/crawler.py @@ -155,11 +155,11 @@ def main(): if args.no_git: return - if repo.git.diff(name_only=True) == "": + repo.git.add("*") + if repo.git.diff("--cached", name_only=True) == "": return message = generate_commit_message(old_bios, bios) - repo.git.add("*") repo.index.commit(message) origin = repo.remote(name="origin") origin.push()