diff --git a/src/github/data/fetcher.ts b/src/github/data/fetcher.ts index b1dc26d..160c724 100644 --- a/src/github/data/fetcher.ts +++ b/src/github/data/fetcher.ts @@ -1,4 +1,4 @@ -import { execSync } from "child_process"; +import { execFileSync } from "child_process"; import type { Octokits } from "../api/client"; import { ISSUE_QUERY, PR_QUERY, USER_QUERY } from "../api/queries/github"; import type { @@ -114,7 +114,7 @@ export async function fetchGitHubData({ try { // Use git hash-object to compute the SHA for the current file content - const sha = execSync(`git hash-object "${file.path}"`, { + const sha = execFileSync("git", ["hash-object", file.path], { encoding: "utf-8", }).trim(); return {