Skip to content

Commit e15f910

Browse files
authored
Merge pull request #3095 from buildkite/chore/quiet-rev-parse-check
Don't surface expected stderr output from git rev-parse
2 parents 68fac8d + 09b44b6 commit e15f910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/job/checkout.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func hasGitSubmodules(sh *shell.Shell) bool {
270270

271271
func hasGitCommit(ctx context.Context, sh *shell.Shell, gitDir string, commit string) bool {
272272
// Resolve commit to an actual commit object
273-
output, err := sh.Command("git", "--git-dir", gitDir, "rev-parse", commit+"^{commit}").RunAndCaptureStdout(ctx)
273+
output, err := sh.Command("git", "--git-dir", gitDir, "rev-parse", commit+"^{commit}").RunAndCaptureStdout(ctx, shell.ShowStderr(false))
274274
if err != nil {
275275
return false
276276
}

0 commit comments

Comments
 (0)