Skip to content

Commit ba8d229

Browse files
committed
Parse 'commit_nr' as an integer, not a string
1 parent 0119331 commit ba8d229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitlogg/gitlogg-parse-json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var output = fs.readFileSync('gitlogg.tmp', 'utf8')
2424

2525
// vars based on sequential values ( sanitise " to ' on fields that accept user input )
2626
var repository = item[3], // color-consolidator
27-
commit_nr = item[0], // 3
27+
commit_nr = parseInt(item[0], 10), // 3
2828
commit_hash = item[5], // 5109ad5a394a4873290ff7f7a38b7ca2e1b3b8e1
2929
commit_hash_abbreviated = item[7], // 5109ad5
3030
tree_hash = item[9], // a1606ea8d6e24e1c832b52cb9c04ae1df2242ed4

0 commit comments

Comments
 (0)