Repository navigation
[Security] Git hooks can run arbitrary code #9217
Replies: 1 comment 1 reply
|
Confirmed here independently, with measurements — and the harness's own git calls are the ones that will honor it. Reproduction (this machine, git 2.50.1). Scratch repo,
Two invocations per command is git's fsmonitor version probe plus the token request. So the hook is asked on any index/content command, not only on something like Where the harness runs git. The environment is scrubbed, but the argv carries no The repository already treats this as something to disable on its own git calls. spawnSync('git', ['-C', cwd, '-c', 'core.fsmonitor=false', ...args], { … })and Suggested minimal fix (one line per call site, matching the in-tree precedent above): pass One thing I could not reproduce, and it would make the report stronger. You saw four invocations within one second during |
Uh oh!
There was an error while loading. Please reload this page.
fsmonitor hooks can be run in DSH.
Checked on 0.2.0-rc2
All reactions