@feigi/fleet-ctl 3.18.8 → 3.18.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feigi/fleet-ctl",
3
- "version": "3.18.8",
3
+ "version": "3.18.9",
4
4
  "description": "Agent fleet: run-team controller, merge bot, PR reviewer, and the ticket pipeline they share",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -2849,11 +2849,18 @@ test("an ambient GIT_DIR does not ask another repository whether the ticket is t
2849
2849
  // The fixture's own positive control: if the other repository happened to
2850
2850
  // carry a worktree for #77 too, looking in the wrong place would give the
2851
2851
  // right answer and this case would pass while pinning nothing.
2852
- assert.doesNotMatch(
2853
- execFileSync("git", ["-C", elsewhere.repo, "worktree", "list"], { encoding: "utf8" }),
2854
- /77/,
2855
- "fixture: the other repository must hold nothing for #77",
2856
- );
2852
+ //
2853
+ // Matched against each worktree's basename and branch, never the whole
2854
+ // listing: the listing carries the fixture's mkdtemp path, whose random
2855
+ // suffix can itself contain `77` (#2512). The main worktree's basename is
2856
+ // fixture()'s fixed `repo`, so no random byte reaches what is matched.
2857
+ const elsewhereNames = execFileSync("git", ["-C", elsewhere.repo, "worktree", "list", "--porcelain"],
2858
+ { encoding: "utf8" })
2859
+ .split("\n")
2860
+ .flatMap((l) => l.startsWith("worktree ") ? [l.slice(9).replace(/.*\//, "")]
2861
+ : l.startsWith("branch refs/heads/") ? [l.slice(18)] : []);
2862
+ assert.ok(!elsewhereNames.some((name) => /77/.test(name)),
2863
+ `fixture: the other repository must hold nothing for #77; it lists ${JSON.stringify(elsewhereNames)}`);
2857
2864
 
2858
2865
  const r = spawnSync("sh", [SCRIPT, "77"], {
2859
2866
  cwd: here.repo,