From dc61379cd51e7f095bed74dabee1c13b43330f88 Mon Sep 17 00:00:00 2001 From: "sayurinana(vm)" Date: Wed, 17 Dec 2025 06:31:00 +0800 Subject: [PATCH] =?UTF-8?q?[aide]=20=E4=BF=AE=E5=A4=8D:=20git=20add=5Fall?= =?UTF-8?q?=20=E6=94=B9=E7=94=A8=20-A=20=E5=8F=82=E6=95=B0=E7=A1=AE?= =?UTF-8?q?=E4=BF=9D=E5=88=A0=E9=99=A4=E7=9A=84=E6=96=87=E4=BB=B6=E4=B9=9F?= =?UTF-8?q?=E8=A2=AB=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .aide/flow-status.lock | 1 - aide-program/aide/flow/git.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100755 .aide/flow-status.lock diff --git a/.aide/flow-status.lock b/.aide/flow-status.lock deleted file mode 100755 index 78d62a9..0000000 --- a/.aide/flow-status.lock +++ /dev/null @@ -1 +0,0 @@ -45404 \ No newline at end of file diff --git a/aide-program/aide/flow/git.py b/aide-program/aide/flow/git.py index ce96a35..26c27b9 100644 --- a/aide-program/aide/flow/git.py +++ b/aide-program/aide/flow/git.py @@ -25,7 +25,8 @@ class GitIntegration: def add_all(self) -> None: self.ensure_repo() - result = self._run(["add", "."], check=False) + # 使用 -A 确保删除的文件也被暂存 + result = self._run(["add", "-A"], check=False) if result.returncode != 0: raise FlowError(_format_git_error("git add 失败", result))