Skip to content

Commit 68213d0

Browse files
authored
Do not set fetch depth on source-build (#90703)
1 parent 1a13ecb commit 68213d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

eng/pipelines/common/global-build-job.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ jobs:
147147
steps:
148148
- checkout: self
149149
clean: true
150-
fetchDepth: $(checkoutFetchDepth)
150+
# If running in source build mode, a git stash will be used for the inner clone. Avoid setting a fetch depth,
151+
# as a stash of a shallow cloned repo is not currently supported.
152+
${{ if ne(parameters.isSourceBuild, true) }}:
153+
fetchDepth: $(checkoutFetchDepth)
151154

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

0 commit comments

Comments
 (0)