fix author git publication recovery
This commit is contained in:
@@ -1142,9 +1142,7 @@ test("rejects a symbolic-link registry root before creating a lock below it", as
|
||||
const root = join(remote.root, "registry-link");
|
||||
mkdirSync(target);
|
||||
symlinkSync(target, root);
|
||||
const registry = makeRegistry(config(root, remote.remote));
|
||||
|
||||
await expect(bootstrap(registry)).rejects.toMatchObject({ code: "git_unavailable" });
|
||||
expect(() => makeRegistry(config(root, remote.remote))).toThrow("invalid sessions root");
|
||||
expect(existsSync(join(target, "locks"))).toBe(false);
|
||||
});
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ async function git(cwd: string, args: string[]): Promise<string> {
|
||||
}
|
||||
|
||||
async function fixture(workspaceSource = filesystemWorkspace) {
|
||||
const root = mkdtempSync(join(tmpdir(), "tht-runtime-handoff-"));
|
||||
const root = realpathSync(mkdtempSync(join(tmpdir(), "tht-runtime-handoff-")));
|
||||
roots.push(root);
|
||||
const remote = join(root, "remote.git");
|
||||
const source = join(root, "source");
|
||||
|
||||
Reference in New Issue
Block a user