{"thread":{"id":"47112","subject":"git, isolation","startedAt":"2017-11-03T16:43:04Z","lastAt":"2017-11-03T17:18:55Z","messageCount":3,"participants":["Péter","Dennis Kaarsemaker","Stefan Beller"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"331789","messageId":"9f514a9b-858c-9f3a-e2d4-a45987a19b9a@prolan-power.hu","threadId":"47112","inReplyTo":null,"subject":"git, isolation","fromName":"Péter","fromEmail":"e2qb2a44f@prolan-power.hu","sentAt":"2017-11-03T16:33:23Z","receivedAt":"2017-11-03T16:43:04Z","isPatch":false,"sender":{"key":"e2qb2a44f@prolan-power.hu","avatar":null},"body":"Hi,\n\nIf I do a \"git commit\", issue git operations, and at the end, issue a \"rm <the_git_dir>\", is there any guarantee that my \nfilesystem will be \"clean\", i.e. not polluted or otherwise modified by some git command? Are the git operations \nrestricted to the repo-directory (and possibly remote places, over network)? Do the git-directory behaves as it were \nchroot-ed or be a sandbox? (Yet another words: is the git-directory isolated from the rest of the local filesystem (and \npackaging system)?)\n\n\nPéter\n\n\n\n"},{"id":"331790","messageId":"1509727946.1734.2.camel@kaarsemaker.net","threadId":"47112","inReplyTo":"9f514a9b-858c-9f3a-e2d4-a45987a19b9a@prolan-power.hu","subject":"Re: git, isolation","fromName":"Dennis Kaarsemaker","fromEmail":"dennis@kaarsemaker.net","sentAt":"2017-11-03T16:52:26Z","receivedAt":"2017-11-03T16:52:33Z","isPatch":false,"sender":{"key":"dennis@kaarsemaker.net","avatar":"https://avatars.githubusercontent.com/u/200649?v=4"},"body":"On Fri, 2017-11-03 at 17:33 +0100, Péter wrote:\n> Hi,\n> \n> If I do a \"git commit\", issue git operations, and at the end, issue a \"rm <the_git_dir>\", is there any guarantee that my \n> filesystem will be \"clean\", \n\nNo.\n\n> i.e. not polluted or otherwise modified by some git command? Are the git operations \n> restricted to the repo-directory (and possibly remote places, over network)? \n\nNo.\n\n> Do the git-directory behaves as it were \n> chroot-ed or be a sandbox? (Yet another words: is the git-directory isolated from the rest of the local filesystem (and \n> packaging system)?)\n\nAnd no :)\n\nMost git commands will not touch anything outside the main worktree and\nthe .git directory in there, but commands like 'git worktree' can be\nused to create worktrees anywhere in the filesystem, and when you play\ntricks with the GIT_WORK_TREE environment variable, you can do other\nnasty things.\n\nD.\n"},{"id":"331792","messageId":"CAGZ79kar+YbMyMK-ktOT3WZW5fZB89HL1QabsZAhofcGuSJSbg@mail.gmail.com","threadId":"47112","inReplyTo":"1509727946.1734.2.camel@kaarsemaker.net","subject":"Re: git, isolation","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2017-11-03T17:18:49Z","receivedAt":"2017-11-03T17:18:55Z","isPatch":false,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Fri, Nov 3, 2017 at 9:52 AM, Dennis Kaarsemaker\n<dennis@kaarsemaker.net> wrote:\n> On Fri, 2017-11-03 at 17:33 +0100, Péter wrote:\n>> Hi,\n>>\n>> If I do a \"git commit\", issue git operations, and at the end, issue a \"rm <the_git_dir>\", is there any guarantee that my\n>> filesystem will be \"clean\",\n>\n> No.\n>\n>> i.e. not polluted or otherwise modified by some git command? Are the git operations\n>> restricted to the repo-directory (and possibly remote places, over network)?\n>\n> No.\n>\n>> Do the git-directory behaves as it were\n>> chroot-ed or be a sandbox? (Yet another words: is the git-directory isolated from the rest of the local filesystem (and\n>> packaging system)?)\n>\n> And no :)\n>\n> Most git commands will not touch anything outside the main worktree and\n> the .git directory in there, but commands like 'git worktree' can be\n> used to create worktrees anywhere in the filesystem, and when you play\n> tricks with the GIT_WORK_TREE environment variable, you can do other\n> nasty things.\n\nOr a more common thing, implemented earlier in Gits career:\n\n  git config --global ....\n"}]}