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")