fixed other stupid bug

This commit is contained in:
Karma Riuk
2025-06-11 09:26:53 +02:00
parent 6493945736
commit 33712bbae1

View File

@ -160,7 +160,7 @@ class BuildHandler(ABC):
for file_path, change in changes.items():
full_path = os.path.abspath(os.path.join(self.path, file_path))
assert (
os.path.commonpath([self.path, full_path]) != self.path
os.path.commonpath([self.path, full_path]) == self.path
), "Attempting to write to a file outside the repo. This is not allowed"
print(f"[INFO] Writing change to {full_path}")