Skip to content

Commit

Permalink
#874 remove paths with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
filippomc committed Jan 10, 2024
1 parent 3f18cf5 commit 0c701bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,14 @@ def create_copy_task(self, workspace_id, origins: List[ResourceOrigin]):
# download the resource
import workspaces.service.workflow as workflow

folder = os.path.join(self.osbrepository.name, self.osbrepository.default_context)
folder = os.path.join(os.path.basename(self.uri), self.osbrepository.default_context)

return workflow.create_copy_task(
image_name="workspaces-github-copy",
workspace_id=workspace_id,
folder=folder,
url=self.uri,
paths="'" + "' '".join(o.path.split(self.osbrepository.default_context)[1][1:] for o in origins) + "'",
paths=" ".join(o.path.split(self.osbrepository.default_context)[1][1:] for o in origins if " " not in o.path),
branch=self.osbrepository.default_context,
)

Expand Down
29 changes: 0 additions & 29 deletions skaffold-overrides.yaml

This file was deleted.

0 comments on commit 0c701bb

Please sign in to comment.