From e22fadcf44b934d5f1d91579d74848a418f22b11 Mon Sep 17 00:00:00 2001 From: snowy Date: Wed, 27 Mar 2024 00:15:12 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E6=89=8B=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/liteyuki_main/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/liteyuki/liteyuki_main/core.py b/liteyuki/liteyuki_main/core.py index ec29c45..aa979a4 100644 --- a/liteyuki/liteyuki_main/core.py +++ b/liteyuki/liteyuki_main/core.py @@ -49,11 +49,9 @@ async def _(bot: T_Bot, event: T_MessageEvent): break except Exception as e: print(f"Pull from {origin} failed: {e}") - logs = repo.git.log('--pretty=format:%H %s') + logs = repo.index.diff() reply = "Liteyuki updated!\n" reply += f"```\n{logs}\n```" - print(list(repo.iter_commits())) - await send_markdown(reply, bot, event=event, at_sender=False)