Skip to content

Commit 1063e14

Browse files
committed
Build: Handle uncommitted files
Fixes jquerygh-590
1 parent b16c406 commit 1063e14

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Gruntfile.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ function contributorAttribution( post, fileName, callback ) {
6060

6161
// Reduce to a unique list of contributors
6262
.filter(function( value, index, array ) {
63-
return array.indexOf( value ) === index;
63+
64+
// Check for a value in case this is a new file and there is git log
65+
return value && array.indexOf( value ) === index;
6466
})
6567

6668
// Convert to structured objects

0 commit comments

Comments
 (0)