From 3b765711160de385234d5c039281dd83c0255882 Mon Sep 17 00:00:00 2001 From: Steve MacLean Date: Tue, 28 Jan 2020 22:33:10 -0500 Subject: [PATCH] Limit jit format.py to src/coreclr/src/jit --- src/coreclr/tests/scripts/format.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/coreclr/tests/scripts/format.py b/src/coreclr/tests/scripts/format.py index 60729d68fbbfed..2f122b485af37f 100644 --- a/src/coreclr/tests/scripts/format.py +++ b/src/coreclr/tests/scripts/format.py @@ -207,8 +207,9 @@ def main(argv): if returncode != 0: # Create a patch file print("Creating patch file " + patchFilePath) + jitSrcPath = os.path.join(coreclr, "src", "jit") patchFile = open(patchFilePath, "w") - proc = subprocess.Popen(["git", "diff", "--patch", "-U20"], env=my_env, stdout=patchFile) + proc = subprocess.Popen(["git", "diff", "--patch", "-U20", "--", jitSrcPath], env=my_env, stdout=patchFile) output,error = proc.communicate() if os.path.isdir(jitUtilsPath):