Skip to content

capture stderr for failed git commands

Administrator requested to merge cc/capture-stderr into main

Created by: camdencheek

Example error before:

Commit search failed: exit status 128

Example error after:

Commit search failed: command failed with stderr "fatal: your current branch 'master' does not have any commits yet\n": exit status 128

It then uses the captured stdout to ignore that specific error since it doesn't matter for commit/diff search (no commits just means no results).

Merge request reports

Loading