[aide] 修复: git add_all 改用 -A 参数确保删除的文件也被暂存

This commit is contained in:
2025-12-17 06:31:00 +08:00
parent 9affc4282e
commit dc61379cd5
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +0,0 @@
45404

View File

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