use git in english when matching its output

See db58416d7f.

Fixes #698.
pull/701/head
pagran 1 year ago committed by GitHub
parent 059c1d68e2
commit b87830eb97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -122,6 +122,7 @@ func applyPatches(srcDir, workingDir string, modFiles map[string]bool, patches [
// by default treats workingDir as a subfolder of repository, so it will break git apply. Adding --git-dir flag blocks this behavior.
cmd := exec.Command("git", "--git-dir", workingDir, "apply", "--verbose")
cmd.Dir = workingDir
cmd.Env = append(cmd.Env, "LANG=en_US")
cmd.Stdin = bytes.NewReader(bytes.Join(patches, []byte("\n")))
out, err := cmd.CombinedOutput()
if err != nil {

Loading…
Cancel
Save