Skip to content

Commit 79ed594

Browse files
authored
Add --global flag to git config commands
1 parent 4a4c903 commit 79ed594

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

eng/common/pipelines/templates/steps/sparse-checkout.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ steps:
2222
- ${{ if ne(parameters.TokenToUseForAuth, '') }}:
2323
- pwsh: |
2424
$base64Token = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes("nobody:${{ parameters.TokenToUseForAuth }}"))
25-
git config set "http.extraheader" "AUTHORIZATION: basic $base64Token"
25+
git config set --global "http.extraheader" "AUTHORIZATION: basic $base64Token"
2626
displayName: Setup git config auth header
2727
2828
- task: PowerShell@2
@@ -138,6 +138,6 @@ steps:
138138

139139
- ${{ if ne(parameters.TokenToUseForAuth, '') }}:
140140
- pwsh: |
141-
git config unset "http.extraheader"
141+
git config unset --global "http.extraheader"
142142
displayName: Removing git config auth header
143143
condition: always()

0 commit comments

Comments
 (0)