79133229

Date: 2024-10-28 11:49:27
Score: 0.5
Natty:
Report link

My understanding of git checkout was that if I specified the path I wanted my repo to end up at, it checks it out directly to there.

However, after some fiddling around, I have no discovered that the solution to this problem.

It is that even though i have specified the 'path: cibuild', inline with the error, i actually had to create the '/home/vsts/work/1/s/poc-plan-in-pr' directory myself manually.

- pwsh: |
          New-Item -Path "$(Pipeline.Workspace)/s/$(Build.Repository.Name)" -ItemType "directory" -Force
        displayName: "pr step: prepare checkout"
      - checkout: self
        displayName: "pr step: checkout repository"
        path: "cibuild"
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Conal Sparrow