Skip to content

Commit

Permalink
fix: Ensure the Perforce workspace directory exists
Browse files Browse the repository at this point in the history
  • Loading branch information
timniederhausen committed Aug 22, 2024
1 parent 1502527 commit 354c507
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gclient_scm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2167,6 +2167,8 @@ def update(self, options, args, file_list):
",".join(args))

self._CreateClient()
if not os.path.isdir(self.checkout_path):
gclient_utils.safe_makedirs(self.checkout_path)

parsed_url = scm_p4.parse_workspace_url(self.url)
revision = options.revision or parsed_url.changelist
Expand Down

0 comments on commit 354c507

Please sign in to comment.