Skip to content

Commit c06d1c6

Browse files
authored
Fix tests??? Somehow? (#740)
# Motivation <!-- Why is this change necessary? --> # Content <!-- Please include a summary of the change --> # Testing <!-- How was the change tested? --> # Please check the following before marking your PR as ready for review - [ ] I have added tests for my changes - [ ] I have updated the documentation or added new documentation as needed
1 parent c5b3ba4 commit c06d1c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/codegen/git/repo_operator/repo_operator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,8 @@ def iter_files(
647647
content = self.get_file(filepath)
648648
yield rel_filepath, content
649649
else:
650+
# WTF??? A no-op file read here fixes file parsing somehow?
651+
open(filepath).close()
650652
yield rel_filepath, ""
651653
except Exception as e:
652654
logger.warning(f"Error reading file {filepath}: {e}")

0 commit comments

Comments
 (0)