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 authored and Xubin Ren committed 2026-04-19 03:38:22 +08:00
1 parent 8f8e41fe06
commit fb28678b64
3 files changed
+121 -3

No files matched your search

+1
View File
@@ -92,3 +92,4 @@ logs/
tmp/
temp/
*.tmp
.oss/