Check exitCode === 1 instead of message content, as git diff --no-index returns exit code 1 when differences exist (which is expected behavior, not an error). Amp-Thread-ID: https://ampcode.com/threads/T-019c0a9a-b26b-7719-9718-04185371eb9c Co-authored-by: Amp <amp@ampcode.com>