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 printing bug #57

Merged
merged 1 commit into from
Jul 22, 2024
Merged

fix printing bug #57

merged 1 commit into from
Jul 22, 2024

Conversation

biobootloader
Copy link
Member

No description provided.

Copy link

@mentatai mentatai bot left a comment

Choose a reason for hiding this comment

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

This pull request addresses a printing bug in the is_git_repo method of the LocalIO class. The change to use capture_output=True in the subprocess.run call is appropriate and should resolve the issue. The version bump in pyproject.toml is consistent with this being a bug fix. Overall, this is a small but important improvement to the project.

Thanks for using MentatBot. Give comments a 👍 or 👎 to help me improve!

@@ -7,7 +7,7 @@ packages=["ragdaemon"]

[project]
name = "ragdaemon"
version = "0.8.1"
version = "0.8.2"
Copy link

Choose a reason for hiding this comment

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

The version bump from 0.8.1 to 0.8.2 is appropriate for a bug fix. Make sure this change is documented in the project's changelog if one exists.

@@ -51,7 +51,7 @@ def is_git_repo(self, path: Optional[Path | str] = None):
if path:
args.append(Path(path).as_posix())
try:
output = subprocess.run(args, cwd=self.cwd)
output = subprocess.run(args, cwd=self.cwd, capture_output=True)
Copy link

Choose a reason for hiding this comment

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

Suggested change
output = subprocess.run(args, cwd=self.cwd, capture_output=True)
output = subprocess.run(args, cwd=self.cwd, capture_output=True)

Good catch. This change prevents the subprocess output from being printed to the console, which is likely the intended behavior for this method. It's a proper fix for the printing bug mentioned in the PR summary.

@biobootloader biobootloader merged commit 8fb5286 into main Jul 22, 2024
3 checks passed
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