diff options
author | Rebecca Turner <me@re-becca.org> | 2017-03-16 03:37:22 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2017-03-16 03:54:33 +0300 |
commit | 2bdd6ee8ec0de43538c6b5d46f76c4c63c6b6ef2 (patch) | |
tree | f80a6b4a1b0488b3df59e38fc2b63d64671ab435 /scripts | |
parent | 6754dabb6bd3301504efb3b62f36d3fe70958c19 (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.js | 3 |
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], |