Fix small bug for local repo (#1295)
* Fix target repo path error for local repo config * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -110,7 +110,9 @@ class LocalRepoConfig(BaseModel):
|
||||
asyncio.run(
|
||||
deployment.runtime.upload(UploadRequest(source_path=str(self.path), target_path=f"/{self.repo_name}"))
|
||||
)
|
||||
r = asyncio.run(deployment.runtime.execute(Command(command=f"chown -R root:root {self.repo_name}", shell=True)))
|
||||
r = asyncio.run(
|
||||
deployment.runtime.execute(Command(command=f"chown -R root:root /{self.repo_name}", shell=True))
|
||||
)
|
||||
if r.exit_code != 0:
|
||||
msg = f"Failed to change permissions on copied repository (exit code: {r.exit_code}, stdout: {r.stdout}, stderr: {r.stderr})"
|
||||
raise RuntimeError(msg)
|
||||
|
||||
Reference in New Issue
Block a user