Skip to content
Unverified Commit d24a9dbc authored by Kyle Laker's avatar Kyle Laker Committed by GitHub
Browse files

agnoster: fix git working tree check (#9072)



`git rev-parse --is-inside-work-tree` does not have a different exit
code when not within a work tree; the difference is in the output,
either "true" when in a work tree, or "false" when not.

The if was modified similarly to the check for the hide-status config,
which also parses command output rather than exit code.

Co-authored-by: default avatarKyle Laker <klaker@easydynamics.com>
parent 232cb198
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment