Skip to content

Commit 4e59a64

Browse files
authored
fix: only parse commit messages during git node backport analysis (nodejs#651)
Previously we parse the entire commit, including the diff, which can result in ENOBUFS errors. Adding `-s` option to the `git show` command would eliminate the commit body in the output, which we don't need, so the error can be less likely to happen during commit message analysis.
1 parent c4ab7f5 commit 4e59a64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/backport_session.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default class BackportSession extends Session {
3939

4040
getCommitMessage(rev) {
4141
return runSync('git',
42-
['show', '--format=%B', rev]
42+
['show', '--format=%B', '-s', rev]
4343
).trim();
4444
}
4545

0 commit comments

Comments
 (0)