Skip to content

Commit 351c590

Browse files
committed
added fetchdepth back, added git fetch origin
1 parent 8da3c5b commit 351c590

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CI/AZ_MainPipeline.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ variables:
1111
- name: ArtifactBranchName
1212
value: tSQLt$(Build.SourceVersion)
1313
- name: GitFetchDepth
14-
value: 22
14+
value: 11
1515

1616
resources:
1717
repositories:
@@ -304,7 +304,8 @@ stages:
304304
git status
305305
git remote show origin
306306
307-
git switch "$(ArtifactBranchName)"
307+
git fetch --depth=11 origin
308+
git checkout "$(ArtifactBranchName)"
308309
$CheckIfGitOk.invoke($?);
309310
310311
git status

0 commit comments

Comments
 (0)