Skip to content

Commit

Permalink
Fix working directory for git diff command
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Jun 24, 2024
1 parent 8542bc8 commit c61ba61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/scripts/jitformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def main(argv):
logging.info("Creating patch file {}".format(patchFilePath))
jitSrcPath = os.path.join(runtime, "src", "coreclr", "jit")
patchFile = open(patchFilePath, "w")
proc = subprocess.Popen(["git", "diff", "--patch", "-U20", "--", jitSrcPath], env=my_env, stdout=patchFile)
proc = subprocess.Popen(["git", "diff", "--patch", "-U20", "--", jitSrcPath], cwd=runtime, env=my_env, stdout=patchFile)
output,error = proc.communicate()

if returncode != 0:
Expand Down

0 comments on commit c61ba61

Please sign in to comment.