fix(client): normalize checkout branch refs

This commit is contained in:
Mohamed Boudra
2026-07-19 02:27:46 +02:00
parent 4ed944db2f
commit 3e6061b169
2 changed files with 13 additions and 4 deletions
@@ -141,12 +141,19 @@ test("normalized checkout-name collisions cannot reuse another branch", async ()
host: `127.0.0.1:${daemon.port}`,
});
cleanupConnections.add(paseo);
await paseo.addProject(repoRoot);
const first = await paseo.ensureCheckout({
rootPath: repoRoot,
refName: "feature",
directoryName: "Foo.Bar",
});
const same = await paseo.ensureCheckout({
rootPath: repoRoot,
refName: "refs/heads/feature",
directoryName: "foo-bar",
});
expect(same.path).toBe(first.path);
await expect(
paseo.ensureCheckout({
rootPath: repoRoot,