We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a4c903 commit 79ed594Copy full SHA for 79ed594
1 file changed
eng/common/pipelines/templates/steps/sparse-checkout.yml
@@ -22,7 +22,7 @@ steps:
22
- ${{ if ne(parameters.TokenToUseForAuth, '') }}:
23
- pwsh: |
24
$base64Token = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("nobody:${{ parameters.TokenToUseForAuth }}"))
25
- git config set "http.extraheader" "AUTHORIZATION: basic $base64Token"
+ git config set --global "http.extraheader" "AUTHORIZATION: basic $base64Token"
26
displayName: Setup git config auth header
27
28
- task: PowerShell@2
@@ -138,6 +138,6 @@ steps:
138
139
140
141
- git config unset "http.extraheader"
+ git config unset --global "http.extraheader"
142
displayName: Removing git config auth header
143
condition: always()
0 commit comments