(self)
| 277 | self.git_worktree_revision = None |
| 278 | |
| 279 | def pre_run(self): |
| 280 | super(GitWorktreeActionRunner, self).pre_run() |
| 281 | |
| 282 | # Handle git worktree creation |
| 283 | self._content_version = self.runner_parameters.get(RUNNER_CONTENT_VERSION, None) |
| 284 | |
| 285 | if self._content_version: |
| 286 | self.create_git_worktree(content_version=self._content_version) |
| 287 | |
| 288 | # Override entry_point so it points to git worktree directory |
| 289 | pack_name = self.get_pack_name() |
| 290 | entry_point = self._get_entry_point_for_worktree_path( |
| 291 | pack_name=pack_name, |
| 292 | entry_point=self.entry_point, |
| 293 | worktree_path=self.git_worktree_path, |
| 294 | ) |
| 295 | |
| 296 | if not entry_point.startswith(self.git_worktree_path): |
| 297 | raise ValueError( |
| 298 | f"The entry point value {self.entry_point}" |
| 299 | " does not start with the git worktree path" |
| 300 | f"{self.git_worktree_path}." |
| 301 | ) |
| 302 | |
| 303 | self.entry_point = entry_point |
| 304 | |
| 305 | def post_run(self, status, result): |
| 306 | super(GitWorktreeActionRunner, self).post_run(status=status, result=result) |
nothing calls this directly
no test coverage detected