Skip to content

fix(tia): report git errors instead of a missing dependency - #1987

Open
MohannadElemary wants to merge 2 commits into
pestphp:5.xfrom
MohannadElemary:fix/tia-git-error-message
Open

MohannadElemary wants to merge 2 commits into
pestphp:5.xfrom
MohannadElemary:fix/tia-git-error-message

Conversation

@MohannadElemary

Copy link
Copy Markdown

What:

  • Bug Fix
  • New Feature

Description:

When a git command fails in --tia mode, Pest reports that git is missing even when it's installed. The usual case is Docker with a bind mounted project, where git refuses the repo because of dubious ownership.

This keeps git's error output and shows it instead of MissingDependency. A missing git binary and a directory that isn't a repo still behave as before.

Added tests for the failing git cases.

Related:

Related to #1777. This covers the dubious ownership error from the comments there, not the fallback for running TIA without git.

Only report MissingDependency when git can't be found on PATH or there
is no repository. Any other failure shows git's error output, or the
exit code when git printed nothing.
@MohannadElemary
MohannadElemary force-pushed the fix/tia-git-error-message branch from 3fc69be to 1227759 Compare October 21, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant