Skip to content

Commit

Permalink
Fix sparse-checkout git command line behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljurek authored and azure-sdk committed Feb 5, 2024
1 parent 5271910 commit 2e8b909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/common/pipelines/templates/steps/sparse-checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ steps:
Write-Host "git -c advice.detachedHead=false checkout $commitish --"
# This will use the default branch if repo.Commitish is empty
git -c advice.detachedHead=false checkout $commitish --
Invoke-Expression -Command "git -c advice.detachedHead=false checkout $commitish --"
} else {
Write-Host "Skipping checkout as repo has already been initialized"
}
Expand Down

0 comments on commit 2e8b909

Please sign in to comment.