Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/sxzz/midden. Archive posts and media across platforms, with tenant accounts and Telegram access
Something went wrong. Try again.
JavaScript
1234567891011import { existsSync } from "node:fs";import { execFileSync } from "node:child_process";
// Package installs in Docker/release archives have no Git metadata.if (existsSync(new URL("../.git", import.meta.url))) { execFileSync("git", ["config", "core.hooksPath", ".githooks"], { cwd: new URL("..", import.meta.url), stdio: "inherit", });}