Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Git subprocess calls to suppress error output #271

Merged
merged 3 commits into from
Nov 14, 2023
Merged

Conversation

waydegg
Copy link
Contributor

@waydegg waydegg commented Nov 11, 2023

Silence all subprocess STDERR output from git subprocess calls. If there is an error, an exception will be thrown. We don't rely on STDERR for anything, and atm the Terminal Client gets a bunch of console output for git errors even though we already handle that w/ Exception try-catch blocks.

This PR is part of a series of PRs to remove git_root from Mentat, and allow Sessions to be run anywhere on the filesystem.

Copy link
Member

@jakethekoenig jakethekoenig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

mentat/git_handler.py Outdated Show resolved Hide resolved
@waydegg waydegg merged commit a8712eb into main Nov 14, 2023
16 checks passed
@waydegg waydegg deleted the remove-git-root-0 branch November 14, 2023 03:03
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.

3 participants