fix: use commit hash directly for conflict analysis instead of upstream/tag ref

This commit is contained in:
Catriel Müller
2026-02-03 14:25:14 -03:00
parent c543e4b13f
commit 6352beb85e
+3 -6
View File
@@ -156,12 +156,9 @@ async function main() {
// Step 4: Generate conflict report
logger.step(4, 8, "Analyzing potential conflicts...")
const conflicts = await report.analyzeConflicts(
`upstream/${targetVersion.tag}`,
config.baseBranch,
config.keepOurs,
config.skipFiles,
)
// Use the commit hash or tag directly (tags are fetched, not remote refs)
const upstreamRef = targetVersion.commit || targetVersion.tag
const conflicts = await report.analyzeConflicts(upstreamRef, config.baseBranch, config.keepOurs, config.skipFiles)
const conflictReport: report.ConflictReport = {
timestamp: new Date().toISOString(),