Skip to content

Commit

Permalink
Do not set fetch depth on source-build (#90703)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmitche committed Aug 16, 2023
1 parent 1a13ecb commit 68213d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eng/pipelines/common/global-build-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ jobs:
steps:
- checkout: self
clean: true
fetchDepth: $(checkoutFetchDepth)
# If running in source build mode, a git stash will be used for the inner clone. Avoid setting a fetch depth,
# as a stash of a shallow cloned repo is not currently supported.
${{ if ne(parameters.isSourceBuild, true) }}:
fetchDepth: $(checkoutFetchDepth)

- ${{ if and(eq(parameters.isOfficialBuild, true), notin(parameters.osGroup, 'osx', 'maccatalyst', 'ios', 'iossimulator', 'tvos', 'tvossimulator')) }}:
- template: /eng/pipelines/common/restore-internal-tools.yml
Expand Down

0 comments on commit 68213d0

Please sign in to comment.