Skip to content

Commit f50b4cd

Browse files
committed
short vs long hash
1 parent 3c0b54d commit f50b4cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/npmono/src/publish.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ async function getPackageRevList(pkg: Pkg) {
774774

775775
const {stdout: mergeBase} = await execa('git', ['merge-base', fromRef, localRef])
776776
let mergeBaseNote = ''
777-
if (mergeBase !== fromRef) {
777+
if (mergeBase.slice(0, 7) !== fromRef.slice(0, 7)) {
778778
const {stdout: mergeBaseSummary} = await execa('git', ['log', '-n', '1', '--format=%h %s (%ad)', mergeBase])
779779
mergeBaseNote = `\n🚧🚧 NOTE 🚧🚧: ${localRef} (current) is not a descendant of ${fromRef} (last publish). The last publish may have beendone on a separate branch. The merge base is:\n${mergeBaseSummary}`
780780
}
@@ -798,7 +798,7 @@ async function getPackageRevList(pkg: Pkg) {
798798
// versionComparisonString,
799799
markdown:
800800
sections.filter(Boolean).join('\n').trim() ||
801-
`Unable to list commits to ${pkg.name} between ${fromRef} (last publish) and ${localRef} (current). Was ${fromRef} on a different branch?`,
801+
`No commits to ${pkg.name} between found between ${fromRef} (last publish) and ${localRef} (current).`,
802802
}
803803
}
804804

0 commit comments

Comments
 (0)