Skip to content

diff-local exits 0 on git error #424

@retran

Description

@retran

Description

When the project is not in a git repository, mxcli diff-local reports "failed to git diff: exit status 128" but exits with code 0.

Steps to Reproduce

cd /tmp && cp -R ~/project.mpr .
./mxcli diff-local -p project.mpr
echo $?  # prints 0

Expected

Exit 1 when git operations fail.

Severity

Low — automation cannot detect failure.

Reproducing test cases

  • tooling-test-cases.md § 3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions