Skip to content

Commit 4767f88

Browse files
committed
jbr-debug-access-right-test
1 parent 1e3db93 commit 4767f88

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

infrahub_sdk/testing/repository.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import asyncio
44
import shutil
5-
import os
65
from dataclasses import dataclass, field
76
from enum import Enum
87
from pathlib import Path
@@ -60,18 +59,17 @@ def path(self) -> str:
6059

6160
def init(self) -> None:
6261
self.dst_directory.mkdir(parents=True, exist_ok=True)
63-
os.chmod(self.dst_directory, 0o777)
64-
62+
6563
dest_path = self.dst_directory / self.name
6664
if dest_path.exists():
6765
shutil.rmtree(dest_path)
68-
66+
6967
dest = shutil.copytree(
7068
src=self.src_directory,
7169
dst=dest_path,
7270
ignore=shutil.ignore_patterns(".git", *self.directories_to_ignore),
7371
)
74-
72+
dest_path.chmod(0o755)
7573
print(dest)
7674

7775
self._repo = GitRepoManager(str(Path(self.dst_directory / self.name)), branch=self.initial_branch)

0 commit comments

Comments
 (0)