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:
1 parent
8f8e41fe06
commit
fb28678b64
3 files changed
+121
-3
No files matched your search
@@ -92,3 +92,4 @@ logs/
|
||||
tmp/
|
||||
temp/
|
||||
*.tmp
|
||||
.oss/
|
||||
Reference in new issue
Block a user