←back to thread

128 points nvader | 2 comments | | HN request time: 0.426s | source
Show context
amluto ◴[] No.46191145[source]
I want a variant of this where I make a worktree that has no ability to push anywhere including its parent. Instead the parent worktree pulls from it automatically. That way I can run some sandboxed workflow that might arbitrarily corrupt the work tree, possibly overwriting everything in it and symlinked from it, without losing data.
replies(2): >>46191388 #>>46191787 #
1. gcr ◴[] No.46191787[source]
Don’t you just want a clone in that case?
replies(1): >>46198439 #
2. amluto ◴[] No.46198439[source]
By itself, that doesn’t help if the thing in the sandbox does useful work for two hours and then does rm -rf /