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:
@@ -92,3 +92,4 @@ logs/
|
||||
tmp/
|
||||
temp/
|
||||
*.tmp
|
||||
.oss/
|
||||
|
||||
Reference in New Issue
Block a user