You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$workspace = new \DataMachineCode\Workspace\Workspace();
118
138
119
-
echo"\n[1] Unfiltered list includes every workspace directory\n";
139
+
echo"\n[1] Unfiltered list includes every git workspace directory, excludes dotfiles and non-git dirs\n";
120
140
$all = $workspace->list_repos();
121
-
$assert_same(array( 'data-machine-code', 'my-plugin', 'my-plugin@feature-one' ), $repo_names($all), 'unfiltered list includes all repos');
141
+
$assert_same(array( 'data-machine-code', 'my-plugin', 'my-plugin@feature-one' ), $repo_names($all), 'unfiltered list includes git repos but excludes .locks and junk-no-git');
122
142
123
143
echo"\n[2] Repo filter includes primary checkout and worktrees\n";
124
144
$filtered = $workspace->list_repos('my-plugin');
@@ -145,6 +165,11 @@ function is_wp_error( $thing ): bool
145
165
$assert_same(true, is_wp_error($invalid), 'invalid type returns WP_Error');
146
166
$assert_same('invalid_workspace_type', is_wp_error($invalid) ? $invalid->get_error_code() : '', 'invalid type error code is stable');
147
167
168
+
echo"\n[8] Primary listing never includes dotfile infra dirs or non-git directories (#694)\n";
0 commit comments