danger / danger/danger-js

`danger local` git diff error

Open
#492 20 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.5k
Forks
381
Avg merge
2h 8m
Merged PRs (30d)
6

Description

Hi,

When running `danger local --dangerfile dangerfile.js` I am getting:

```
Could not get diff from git between master and HEAD
{ Error: stdout maxBuffer exceeded
at Socket.onChildStdout (child_process.js:325:14)
at Socket.emit (events.js:160:13)
at addChunk (_stream_readable.js:269:12)
at readableAddChunk (_stream_readable.js:252:13)
at Socket.Readable.push (_stream_readable.js:213:10)
at Pipe.onread (net.js:599:20) cmd: 'git diff master...HEAD' }
```

For branch structure:

master -> develop -> build/danger

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `danger local --dangerfile dangerfile.js` with the reported master → develop → build/danger branch structure and inspect the failing `git diff master...HEAD` command. Done means local mode obtains the diff without the `stdout maxBuffer exceeded` error.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.