Skip to content

Commit 0ec2a2e

Browse files
committed
fix: allow overriding remote workspace backend
1 parent 50e326c commit 0ec2a2e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

inc/Workspace/RemoteWorkspaceBackend.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ class RemoteWorkspaceBackend {
2222
* Whether the remote backend should handle workspace operations.
2323
*/
2424
public static function should_handle(): bool {
25-
return ! \DataMachineCode\Support\GitRunner::is_available();
25+
$should_handle = ! \DataMachineCode\Support\GitRunner::is_available();
26+
return function_exists('apply_filters')
27+
? (bool) apply_filters('datamachine_code_remote_workspace_backend_should_handle', $should_handle)
28+
: $should_handle;
2629
}
2730

2831
/**

0 commit comments

Comments
 (0)