diff --git a/lib/apps/fabro-cli/src/commands/run/remote_workflow.rs b/lib/apps/fabro-cli/src/commands/run/remote_workflow.rs index 8e9005abc..64d51d907 100644 --- a/lib/apps/fabro-cli/src/commands/run/remote_workflow.rs +++ b/lib/apps/fabro-cli/src/commands/run/remote_workflow.rs @@ -70,6 +70,8 @@ impl NativeGit { "-c", "core.hooksPath=/dev/null", "-c", + "core.fsmonitor=false", + "-c", "filter.lfs.smudge=", "-c", "filter.lfs.process=", @@ -574,9 +576,26 @@ mod tests { std::fs::Permissions::from_mode(0o755), ) .unwrap(); + // The fsmonitor hook runs during checkout even with hooksPath disabled. + std::fs::write( + hooks.join("fsmonitor"), + format!( + "#!/bin/sh\ntouch '{}'\nprintf 'token\\0/\\0'\n", + sentinel.display() + ), + ) + .unwrap(); + std::fs::set_permissions( + hooks.join("fsmonitor"), + std::fs::Permissions::from_mode(0o755), + ) + .unwrap(); config .set_str("core.hooksPath", hooks.to_str().unwrap()) .unwrap(); + config + .set_str("core.fsmonitor", hooks.join("fsmonitor").to_str().unwrap()) + .unwrap(); config .set_str( "filter.fixture.smudge",