Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2017-03-16 03:37:22 +0300
committerRebecca Turner <me@re-becca.org>2017-03-16 03:54:33 +0300
commit2bdd6ee8ec0de43538c6b5d46f76c4c63c6b6ef2 (patch)
treef80a6b4a1b0488b3df59e38fc2b63d64671ab435 /scripts
parent6754dabb6bd3301504efb3b62f36d3fe70958c19 (diff)
scripts: Allow longer short-committishes when generating changelogs
To support git 2.12.0 Credit: @iarna Reviewed-By: @zkat
Diffstat (limited to 'scripts')
-rw-r--r--scripts/changelog.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/changelog.js b/scripts/changelog.js
index 158a79cc4..8d0dc11ec 100644
--- a/scripts/changelog.js
+++ b/scripts/changelog.js
@@ -74,7 +74,8 @@ function main () {
/*eslint no-cond-assign:0*/
if (/^---$/.test(line)) {
print_commit(commit)
- } else if (m = line.match(/^([a-f0-9]{7}) ([a-f0-9]+) (?:[(]([^)]+)[)] )?(.*?) [(](.*?)[)]/)) {
+ } else if (m = line.match(/^([a-f0-9]{7,9}) ([a-f0-9]+) (?:[(]([^)]+)[)] )?(.*?) [(](.*?)[)]/)) {
+
commit = {
shortid: m[1],
fullid: m[2],