Skip to content

Commit a4d9577

Browse files
committed
Fix test break from git change
1 parent 913ac85 commit a4d9577

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

azure-pipelines/xplattest-pipeline.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ steps:
1111
downloadPath: $(System.DefaultWorkingDirectory)
1212

1313
- script: |
14+
git config --global init.defaultBranch main
1415
git config --global user.name ci
1516
git config --global user.email [email protected]
1617
displayName: Set up git username and email address
@@ -24,7 +25,7 @@ steps:
2425
dotnet new classlib -o lib &&
2526
cd lib &&
2627
echo '{"version":"42.42"}' > version.json &&
27-
git init &&
28+
git init &&
2829
git add version.json &&
2930
git commit -m "Initial commit" &&
3031
mkdir lib && cd lib &&
@@ -53,7 +54,7 @@ steps:
5354
else
5455
echo ".NET Core $DNVERSION"
5556
fi
56-
57+
5758
PkgFileName=$(ls deployables/Cake.GitVersioning.*nupkg)
5859
5960
NBGV_NuGetPackageVersion=$([[ $PkgFileName =~ Cake.GitVersioning\.(.*)\.nupkg ]] && echo "${BASH_REMATCH[1]}")
@@ -74,7 +75,7 @@ steps:
7475
7576
dotnet cake
7677
displayName: Consume Cake.GitVersioning
77-
failOnStderr: true
78+
failOnStderr: true
7879

7980
- script: >
8081
echo DOTNET_ROOT=$DOTNET_ROOT

0 commit comments

Comments
 (0)