From 09b44b699b4507f23563e07d6ea59fedcc54eb9e Mon Sep 17 00:00:00 2001 From: CerealBoy Date: Mon, 18 Nov 2024 13:58:06 +1100 Subject: [PATCH] Don't surface expected stderr output from git rev-parse --- internal/job/checkout.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/job/checkout.go b/internal/job/checkout.go index b1d71f1d0b..a68d894416 100644 --- a/internal/job/checkout.go +++ b/internal/job/checkout.go @@ -270,7 +270,7 @@ func hasGitSubmodules(sh *shell.Shell) bool { func hasGitCommit(ctx context.Context, sh *shell.Shell, gitDir string, commit string) bool { // Resolve commit to an actual commit object - output, err := sh.Command("git", "--git-dir", gitDir, "rev-parse", commit+"^{commit}").RunAndCaptureStdout(ctx) + output, err := sh.Command("git", "--git-dir", gitDir, "rev-parse", commit+"^{commit}").RunAndCaptureStdout(ctx, shell.ShowStderr(false)) if err != nil { return false }