Files
mandy/tests
Romain PINSOLLE 5abe553f5f merge_check: exit 2 when git cannot be run (MERGE-CHECK-GIT-MISSING)
The docstring promises exit 2 on a git error. When git is not on PATH,
subprocess.run raised FileNotFoundError, which escaped main() as a
traceback with exit 1. The git() helper now turns the OSError into a
GitError, so the message reads "merge_check: cannot run git: ..." and
the exit code is 2.

Tests cover a patched FileNotFoundError, an empty PATH, and a folder
that is not a repository (git exits nonzero; still exit 2).
2026-11-24 10:53:11 +01:00
..
2026-11-23 17:08:32 -05:00
2026-11-23 17:08:54 -05:00