Skip to content

Commit

Permalink
new comments in diff3_analysis.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cactusbranch01 authored Dec 1, 2023
1 parent c5a19c1 commit 6d7256c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/python/diff3_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ def diff3_analysis(merge_tool: str, repo_num: int):
text=True,
)

# Check for the specific error message
# Check that diff3 didn't run into missing files in the base
error_message = "No such file or directory"
if error_message in diff_results.stderr:
# Run diff in the other way
# Since the conflict file was added in both parents we can't diff the base.
diff_results = subprocess.run(
[
"diff",
Expand All @@ -113,7 +113,6 @@ def diff3_analysis(merge_tool: str, repo_num: int):
# Delete the temporary file
os.remove(temp_file.name)

print("reached delete repo")
# Deletes base, programmer_merge, and merge_attempt folders in repos dir
# We do this to prevent errors if cloning the same repo into the folder twice
subprocess.run(
Expand Down

0 comments on commit 6d7256c

Please sign in to comment.