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

Don't surface expected stderr output from git rev-parse #3095

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

CerealBoy
Copy link
Contributor

Description

When using git-mirrors, a rev-parse call is made to look for the commit within the current mirror, which will fatal if not found. As this is expected behaviour, capturing and displaying this error is misleading and not helpful. We can instead ignore it, as the mirror will be updated in this circumstance.

Context

https://coda.io/d/Escalations-Feedback_dHnUHNps1YO/Pipelines-In-Progress-Board_suIFKYEb#Escalations-Pipelines_tuQbCBf6/r850&view=modal

Changes

When doing the rev-parse check for the commit, include a ShowStderr(false) to the shell call.

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go fmt ./...)

Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

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

LGTM ✅

Sorry to cause the confusion 🙇

@CerealBoy CerealBoy merged commit e15f910 into main Nov 18, 2024
1 check passed
@CerealBoy CerealBoy deleted the chore/quiet-rev-parse-check branch November 18, 2024 03:08
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.

2 participants