Skip to content

Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.

fix(ci): silence git's fatal line when a PR adds a new skill (#652)

Corey Haines0baf720ab0c3
diff --git a/scripts/check-versions.mjs b/scripts/check-versions.mjs
index 5165cd3..af312b1 100644
--- a/scripts/check-versions.mjs
+++ b/scripts/check-versions.mjs
@@ -81,7 +81,8 @@ for (const name of skills) {
if (base) {
const atBase = (path) => {
try {
- return git("show", `${base}:${path}`);
+ // A path missing at base (a new skill) is expected; keep git's "fatal:" off stderr.
+ return execFileSync("git", ["show", `${base}:${path}`], { cwd: ROOT, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] });
} catch {
return null;
}