Skip to content

A git invocation exited non-zero

Type URI: https://modeled-information-format.github.io/mif-rs/references/errors/git-command-failed/v1 HTTP status: 500 Exit code: 2 Emitted by: mif-rh (MifRhError::GitCommandFailed)

git {command} failed: {stderr}

This fires when a git invocation mif-rh depends on (e.g. reading real release tags to reconcile CHANGELOG footer links) exits non-zero — the target directory isn’t a git repository, its refs are corrupted, or another real git-level failure occurred. It is distinct from a valid repository that simply has no tags yet, which is not an error.

Maybe incorrect — run the command’s directory root through git status to confirm it’s a real, uncorrupted git repository, then retry.