Skip to content

git-stats --authors fails with redirected output #192

@vogler

Description

@vogler

Context:

Works: ROWS=50 COLUMNS=140 git-stats -g
Fails:

$ ROWS=50 COLUMNS=140 git-stats --authors
/usr/local/lib/node_modules/git-stats/node_modules/cli-graph/lib/index.js:63
    self.graph[settings.center.y][settings.center.x] = settings.marks.center;
                                                     ^

TypeError: Cannot set properties of undefined (setting 'NaN')
    at new CliGraph (/usr/local/lib/node_modules/git-stats/node_modules/cli-graph/lib/index.js:63:54)
    at new CliCircle (/usr/local/lib/node_modules/git-stats/node_modules/cli-circle/lib/index.js:35:18)
    at CliPie.toString (/usr/local/lib/node_modules/git-stats/node_modules/cli-pie/lib/index.js:170:18)
    at /usr/local/lib/node_modules/git-stats/lib/index.js:633:95
    at /usr/local/lib/node_modules/git-stats/lib/index.js:565:17
    at LimitIt.<anonymous> (/usr/local/lib/node_modules/git-stats/node_modules/gry/lib/index.js:80:17)
    at /usr/local/lib/node_modules/git-stats/node_modules/limit-it/lib/index.js:138:20
    at ChildProcess.<anonymous> (/usr/local/lib/node_modules/git-stats/node_modules/exec-limiter/lib/index.js:119:13)
    at ChildProcess.emit (node:events:514:28)
    at maybeClose (node:internal/child_process:1105:16)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions