mirror of https://github.com/docker/buildx.git
				
				
				
			gitutil: override the locale to ensure consistent output
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									d2fa4a5724
								
							
						
					
					
						commit
						a8eb2a7fbe
					
				|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue