Semver check: keep git's stderr out of the refusal (the fatal-message test fails without it)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c358ef9739
commit
68c1296b7a
1 changed files with 1 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ export function evaluateRelease({ packageName, changelogText, version, previousV
|
|||
function resolvePreviousVersion(tagPrefix, currentVersion, cwd) {
|
||||
// A directory that cannot list tags (not a git repository, git missing) throws: that
|
||||
// is not evidence that there was no previous release.
|
||||
const tags = execFileSync("git", ["tag", "-l", `${tagPrefix}-v*`], { cwd, encoding: "utf8" })
|
||||
const tags = execFileSync("git", ["tag", "-l", `${tagPrefix}-v*`], { cwd, encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] })
|
||||
.split("\n")
|
||||
.map((line) => line.trim())
|
||||
.filter(Boolean);
|
||||
|
|
|
|||
Loading…
Reference in a new issue