diff --git a/util/gitutil/gitutil.go b/util/gitutil/gitutil.go index 3aa33013..74ec513e 100644 --- a/util/gitutil/gitutil.go +++ b/util/gitutil/gitutil.go @@ -3,6 +3,7 @@ package gitutil import ( "bytes" "context" + "os" "os/exec" "strings" @@ -116,6 +117,9 @@ func (c *Git) run(args ...string) (string, error) { cmd.Dir = c.wd } + // Override the locale to ensure consistent output + cmd.Env = append(os.Environ(), "LC_ALL=C") + stdout := bytes.Buffer{} stderr := bytes.Buffer{} cmd.Stdout = &stdout