Skip to content

Commit

Permalink
scripts: Allow longer short-committishes when generating changelogs
Browse files Browse the repository at this point in the history
To support git 2.12.0

Credit: @iarna
Reviewed-By: @zkat
  • Loading branch information
iarna committed Mar 16, 2017
1 parent 6754dab commit 2bdd6ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 2bdd6ee

Please sign in to comment.