mirror of
https://github.com/actions/checkout.git
synced 2026-01-20 07:38:53 +08:00
add the ability to disable core.autocrlf
This commit is contained in:
parent
25a956c84d
commit
931cbfe4af
5 changed files with 28 additions and 0 deletions
|
|
@ -96,6 +96,13 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
|||
}
|
||||
core.endGroup()
|
||||
|
||||
if (!settings.autocrlf) {
|
||||
core.startGroup('Disabling autocrlf')
|
||||
if (!(await git.tryDisableAutocrlf())) {
|
||||
throw new Error("Unable to disable autocrlf")
|
||||
}
|
||||
}
|
||||
|
||||
const authHelper = gitAuthHelper.createAuthHelper(git, settings)
|
||||
try {
|
||||
// Configure auth
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue