fix: prevent GitStore from creating nested repos and overwriting .gitignore (#2980)

GitStore.init() now checks if the workspace is already inside a git
repository before calling porcelain.init(). If so, it refuses to create
a nested repo. Additionally, existing .gitignore files are preserved
by appending only missing Dream-specific entries rather than overwriting.

Closes #2980
This commit is contained in:
longle325
2026-04-19 03:38:22 +08:00
committed by Xubin Ren
parent 8f8e41fe06
commit fb28678b64
3 changed files with 121 additions and 3 deletions
+1
View File
@@ -92,3 +92,4 @@ logs/
tmp/
temp/
*.tmp
.oss/