mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-04 22:08:12 +02:00
fixed other stupid bug
This commit is contained in:
@ -160,7 +160,7 @@ class BuildHandler(ABC):
|
|||||||
for file_path, change in changes.items():
|
for file_path, change in changes.items():
|
||||||
full_path = os.path.abspath(os.path.join(self.path, file_path))
|
full_path = os.path.abspath(os.path.join(self.path, file_path))
|
||||||
assert (
|
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"
|
), "Attempting to write to a file outside the repo. This is not allowed"
|
||||||
|
|
||||||
print(f"[INFO] Writing change to {full_path}")
|
print(f"[INFO] Writing change to {full_path}")
|
||||||
|
Reference in New Issue
Block a user